Skip to content

Commit 745b422

Browse files
author
bidi
committed
updated admin permissions
1 parent 288f85d commit 745b422

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"sort-packages": true,
2222
"allow-plugins": {
2323
"dotkernel/*": true,
24-
"laminas/laminas-dependency-plugin": true,
2524
"laminas/laminas-component-installer": true,
2625
"composer/package-versions-deprecated": true,
27-
"dealerdirect/phpcodesniffer-composer-installer": true
26+
"dealerdirect/phpcodesniffer-composer-installer": true,
27+
"laminas/laminas-dependency-plugin": true
2828
}
2929
},
3030
"extra": {

config/autoload/authorization.global.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
'roles' => [
2222
AdminRole::ROLE_SUPERUSER => [],
2323
AdminRole::ROLE_ADMIN => [AdminRole::ROLE_SUPERUSER],
24-
UserRole::ROLE_USER => [AdminRole::ROLE_ADMIN],
2524
UserRole::ROLE_GUEST => [UserRole::ROLE_USER]
2625
],
2726
'permissions' => [
@@ -47,6 +46,8 @@
4746
'user.avatar.view',
4847
'user.role.list',
4948
'user.role.view',
49+
'error.report',
50+
'home',
5051
],
5152
UserRole::ROLE_USER => [
5253
'user.my-account.delete',

0 commit comments

Comments
 (0)