0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Gave Administrators permission to connect to Stripe (#13228)

refs https://github.com/TryGhost/Team/issues/994

This adds the permission required to connect to Stripe to the
Administrator role, as required by the linked issue.
This commit is contained in:
Fabien 'egg' O'Carroll 2021-08-26 12:00:40 +02:00 committed by GitHub
parent 611f696149
commit c7a7828b57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 9 deletions

View file

@ -0,0 +1,6 @@
const {addPermissionToRole} = require('../../utils');
module.exports = addPermissionToRole({
permission: 'Auth Stripe Connect for Members',
role: 'Administrator'
});

View file

@ -738,7 +738,8 @@
"email": "all",
"member_signin_url": "read",
"snippet": "all",
"authentication": "resetAllPasswords"
"authentication": "resetAllPasswords",
"members_stripe_connect": "auth"
},
"DB Backup Integration": {
"db": "all"

View file

@ -160,19 +160,19 @@ describe('Migration Fixture Utils', function () {
fixtureUtils.addFixturesForRelation(fixtures.relations[0]).then(function (result) {
should.exist(result);
result.should.be.an.Object();
result.should.have.property('expected', 79);
result.should.have.property('done', 79);
result.should.have.property('expected', 80);
result.should.have.property('done', 80);
// Permissions & Roles
permsAllStub.calledOnce.should.be.true();
rolesAllStub.calledOnce.should.be.true();
dataMethodStub.filter.callCount.should.eql(79);
dataMethodStub.filter.callCount.should.eql(80);
dataMethodStub.find.callCount.should.eql(7);
baseUtilAttachStub.callCount.should.eql(79);
baseUtilAttachStub.callCount.should.eql(80);
fromItem.related.callCount.should.eql(79);
fromItem.findWhere.callCount.should.eql(79);
toItem[0].get.callCount.should.eql(158);
fromItem.related.callCount.should.eql(80);
fromItem.findWhere.callCount.should.eql(80);
toItem[0].get.callCount.should.eql(160);
done();
}).catch(done);

View file

@ -33,7 +33,7 @@ const defaultSettings = require('../../../../core/server/data/schema/default-set
describe('DB version integrity', function () {
// Only these variables should need updating
const currentSchemaHash = '98f6433d608dd44a30f59c243091f6aa';
const currentFixturesHash = '97283c575b1f6c84c27db6e1b1be21d4';
const currentFixturesHash = '8e04dbcb4b8e429e70989572fc9c67b9';
const currentSettingsHash = 'aa3fcbc8ab119b630aeda7366ead5493';
const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';