create accounts only for anon users
This commit is contained in:
parent
3896866d5b
commit
ed9c847669
|
@ -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));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue