feat: Add "count" to CLP initial value (#5841)
* feat: count CLP default values * fix tests
This commit is contained in:
committed by
Diamond Lewis
parent
a5fb38b0b2
commit
4fe0ff6ebf
@@ -31,6 +31,9 @@ const defaultClassLevelPermissions = {
|
||||
find: {
|
||||
'*': true,
|
||||
},
|
||||
count: {
|
||||
'*': true,
|
||||
},
|
||||
create: {
|
||||
'*': true,
|
||||
},
|
||||
@@ -1160,6 +1163,7 @@ describe('schemas', () => {
|
||||
'role:admin': true,
|
||||
},
|
||||
get: {},
|
||||
count: {},
|
||||
update: {},
|
||||
delete: {},
|
||||
addField: {},
|
||||
@@ -2037,6 +2041,7 @@ describe('schemas', () => {
|
||||
{
|
||||
get: { '*': true },
|
||||
find: { '*': true },
|
||||
count: { '*': true },
|
||||
create: { '*': true },
|
||||
},
|
||||
true
|
||||
@@ -2056,6 +2061,7 @@ describe('schemas', () => {
|
||||
expect(res.data.classLevelPermissions).toEqual({
|
||||
get: { '*': true },
|
||||
find: { '*': true },
|
||||
count: { '*': true },
|
||||
create: { '*': true },
|
||||
update: {},
|
||||
delete: {},
|
||||
|
||||
Reference in New Issue
Block a user