mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-27 06:04:22 +00:00
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…
x
Reference in New Issue
Block a user