0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed member permission/role relations in fixtures

no-issue

The previous relations were setup to match against "members", which is
plural, but the object_type on the permission is "member". This was
causing the permissions to not be added as a relation to the role.
This commit is contained in:
Fabien O'Carroll 2019-05-02 16:16:03 +02:00
parent 66f96d0a37
commit 0a67a25dbc
2 changed files with 3 additions and 3 deletions

View file

@ -603,7 +603,7 @@
"integration": "all",
"api_key": "all",
"action": "all",
"members": "all"
"member": "all"
},
"Admin Integration": {
"mail": "all",
@ -621,7 +621,7 @@
"redirect": "all",
"webhook": "all",
"action": "all",
"members": "all"
"member": "all"
},
"Editor": {
"notification": "all",

View file

@ -20,7 +20,7 @@ var should = require('should'),
describe('DB version integrity', function () {
// Only these variables should need updating
const currentSchemaHash = 'fda0398e93a74b2dc435cb4c026679ba';
const currentFixturesHash = '6be3e640cb0f757d472c140e59418f54';
const currentFixturesHash = '675dbc4fa52873bff5263083db44e9f6';
// If this test is failing, then it is likely a change has been made that requires a DB version bump,
// and the values above will need updating as confirmation