Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified RBAC, removed news/add action
- Loading branch information
Showing
10 changed files
with
37 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ phpunit.phar | |
/config/authclients.php | ||
|
||
# rbac assignments | ||
/rbac/assignments.php | ||
/rbac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,26 @@ | ||
<?php | ||
return [ | ||
'createNews' => [ | ||
'adminNews' => [ | ||
'type' => 2, | ||
'description' => 'Create a news', | ||
'description' => 'Administrate news', | ||
], | ||
'updateNews' => [ | ||
'adminUsers' => [ | ||
'type' => 2, | ||
'description' => 'Update news', | ||
], | ||
'addUserNews' => [ | ||
'type' => 2, | ||
'description' => 'User add news', | ||
], | ||
'listNews' => [ | ||
'type' => 2, | ||
'description' => 'Show list news', | ||
], | ||
'deleteNews' => [ | ||
'type' => 2, | ||
'description' => 'Delete news', | ||
], | ||
'adminListNews' => [ | ||
'type' => 2, | ||
'description' => 'Show list news', | ||
], | ||
'user' => [ | ||
'type' => 1, | ||
'description' => 'Пользователь', | ||
'children' => [ | ||
'addUserNews', | ||
'listNews', | ||
], | ||
'description' => 'Administrate users', | ||
], | ||
'moderator' => [ | ||
'type' => 1, | ||
'description' => 'Модератор', | ||
'description' => 'Moderator', | ||
'children' => [ | ||
'createNews', | ||
'updateNews', | ||
'listNews', | ||
'adminListNews', | ||
'deleteNews', | ||
'adminNews', | ||
], | ||
], | ||
'admin' => [ | ||
'type' => 1, | ||
'description' => 'Администратор', | ||
'description' => 'Administrator', | ||
'children' => [ | ||
'updateNews', | ||
'moderator', | ||
'adminUsers', | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters