From ed9c847669ffced988c12291c8cdebea0809aef6 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Wed, 22 Mar 2017 15:05:06 +1100 Subject: [PATCH] create accounts only for anon users --- assets/javascripts/discourse/components/stripe-card.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/components/stripe-card.js.es6 b/assets/javascripts/discourse/components/stripe-card.js.es6 index 0418dc0..640e631 100644 --- a/assets/javascripts/discourse/components/stripe-card.js.es6 +++ b/assets/javascripts/discourse/components/stripe-card.js.es6 @@ -20,7 +20,7 @@ export default Ember.Component.extend({ this._super(); this.set('anon', (Discourse.User.current() == null)); this.set('settings', getRegister(this).lookup('site-settings:main')); - this.set('create_accounts', this.get('settings').discourse_donations_enable_create_accounts); + this.set('create_accounts', this.get('anon') && this.get('settings').discourse_donations_enable_create_accounts); this.set('stripe', Stripe(this.get('settings').discourse_donations_public_key)); },