Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added link bulk edit endpoint permissions #15664

Merged
merged 3 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const {addPermissionWithRoles} = require('../../utils');

module.exports = addPermissionWithRoles({
name: 'Bulk edit links',
action: 'bulkEdit',
object: 'link'
}, [
'Administrator',
'Admin Integration'
]);
5 changes: 5 additions & 0 deletions ghost/core/core/server/data/schema/fixtures/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,11 @@
"name": "Browse links",
"action_type": "browse",
"object_type": "link"
},
{
"name": "Bulk edit links",
"action_type": "bulkEdit",
rishabhgrg marked this conversation as resolved.
Show resolved Hide resolved
"object_type": "link"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion ghost/core/test/integration/migrations/migration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('Database Migration (special functions)', function () {
const permissions = this.obj;

// If you have to change this number, please add the relevant `havePermission` checks below
permissions.length.should.eql(107);
permissions.length.should.eql(108);

permissions.should.havePermission('Export database', ['Administrator', 'DB Backup Integration']);
permissions.should.havePermission('Import database', ['Administrator', 'DB Backup Integration']);
Expand Down
2 changes: 1 addition & 1 deletion ghost/core/test/unit/server/data/schema/integrity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const validateRouteSettings = require('../../../../../core/server/services/route
describe('DB version integrity', function () {
// Only these variables should need updating
const currentSchemaHash = '76cfd2230c02c428e9505f6b9a3936ec';
const currentFixturesHash = '6110a18edb75e3b7465d69385915984d';
const currentFixturesHash = '0d897b970533eef41dde62e7bf96f88e';
const currentSettingsHash = '2978a5684a2d5fcf089f61f5d368a0c0';
const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';

Expand Down
5 changes: 5 additions & 0 deletions ghost/core/test/utils/fixtures/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,11 @@
"name": "Browse links",
"action_type": "browse",
"object_type": "link"
},
{
"name": "Bulk edit links",
"action_type": "bulkEdit",
"object_type": "link"
}
]
},
Expand Down