Fix Permossions
This commit is contained in:
@@ -65,9 +65,10 @@
|
|||||||
$group_name = strtolower($validate['name']);
|
$group_name = strtolower($validate['name']);
|
||||||
$data = [
|
$data = [
|
||||||
$group_name . '.create',
|
$group_name . '.create',
|
||||||
$group_name . '.view',
|
$group_name . '.read',
|
||||||
$group_name . '.update',
|
$group_name . '.update',
|
||||||
$group_name . '.delete',
|
$group_name . '.delete',
|
||||||
|
$group_name . '.export',
|
||||||
$group_name . '.authorize',
|
$group_name . '.authorize',
|
||||||
$group_name . '.report'
|
$group_name . '.report'
|
||||||
];
|
];
|
||||||
@@ -170,6 +171,7 @@
|
|||||||
$group_name . '.read',
|
$group_name . '.read',
|
||||||
$group_name . '.update',
|
$group_name . '.update',
|
||||||
$group_name . '.delete',
|
$group_name . '.delete',
|
||||||
|
$group_name . '.export',
|
||||||
$group_name . '.authorize',
|
$group_name . '.authorize',
|
||||||
$group_name . '.report'
|
$group_name . '.report'
|
||||||
];
|
];
|
||||||
|
|||||||
16
module.json
16
module.json
@@ -20,7 +20,9 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["Administrator"],
|
"roles": [
|
||||||
|
"administrator"
|
||||||
|
],
|
||||||
"sub": [
|
"sub": [
|
||||||
{
|
{
|
||||||
"title": "Users",
|
"title": "Users",
|
||||||
@@ -28,7 +30,9 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": []
|
"roles": [
|
||||||
|
"administrator"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Roles",
|
"title": "Roles",
|
||||||
@@ -36,7 +40,9 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": []
|
"roles": [
|
||||||
|
"administrator"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Permissions",
|
"title": "Permissions",
|
||||||
@@ -44,7 +50,9 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": []
|
"roles": [
|
||||||
|
"administrator"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user