feat: group permissions
This commit is contained in:
1 parent
74aa3d906b
commit
c08b5ac837
19 files changed
+216
-73
No files matched your search
@@ -39,7 +39,9 @@ module.exports = {
|
||||
},
|
||||
async create(obj, args) {
|
||||
const group = await WIKI.models.groups.query().insertAndFetch({
|
||||
name: args.name
|
||||
name: args.name,
|
||||
permissions: JSON.stringify(WIKI.data.groups.defaultPermissions),
|
||||
isSystem: false
|
||||
})
|
||||
return {
|
||||
responseResult: graphHelper.generateSuccess('Group created successfully.'),
|
||||
|
||||
Reference in new issue
Block a user