create accounts only for anon users

This commit is contained in:
Rimian Perkins 2017-03-22 15:05:06 +11:00
parent 3896866d5b
commit ed9c847669
1 changed files with 1 additions and 1 deletions

View File

@ -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));
},