mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
Disabled stripe connect for non-owner users in Portal settings
refs https://github.com/TryGhost/Team/issues/994 Non-owner admin users have visibility of the "Connect with Stripe" UI in Admin, but lack permissions to setup the Stripe session in order to actually connect Stripe. This change patches the Portal settings UI by disabling Stripe Connect option for non-owner admins.
This commit is contained in:
parent
e52bdf88f9
commit
7394df6137
@ -131,7 +131,7 @@
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="gh-portal-setting-no-stripe">
|
||||
You need to <button class="gh-btn gh-btn-link black" {{on "click" (action "openStripeSettings")}}>connect to Stripe</button> to take payments
|
||||
You need to <button class="gh-btn gh-btn-link black {{if (not this.session.user.isOwnerOnly) "disabled"}}" {{on "click" (action "openStripeSettings")}}>connect to Stripe</button> to take payments
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -12,6 +12,7 @@ export default ModalComponent.extend({
|
||||
membersUtils: service(),
|
||||
settings: service(),
|
||||
store: service(),
|
||||
session: service(),
|
||||
|
||||
page: 'signup',
|
||||
iconExtensions: null,
|
||||
|
Loading…
Reference in New Issue
Block a user