-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: strapi 3.1.0 rbac support (#4)
* feat: strapi 3.1.0 rbac support
- Loading branch information
Showing
14 changed files
with
235 additions
and
107 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const pluginPermissions = { | ||
// This permission regards the main component (App) and is used to tell | ||
// If the plugin link should be displayed in the menu | ||
// And also if the plugin is accessible. This use case is found when a user types the url of the | ||
// plugin directly in the browser | ||
main: [ | ||
{ action: 'plugins::comments.read', subject: null }, | ||
{ action: 'plugins::comments.moderate.block.comment', subject: null }, | ||
{ action: 'plugins::comments.moderate.block.thread', subject: null }, | ||
{ action: 'plugins::comments.moderate.reports', subject: null }, | ||
], | ||
open: [ | ||
{ action: 'plugins::comments.read', subject: null }, | ||
], | ||
moderate: [ | ||
{ action: 'plugins::comments.read', subject: null }, | ||
{ action: 'plugins::comments.moderate.block.comment', subject: null }, | ||
{ action: 'plugins::comments.moderate.block.thread', subject: null }, | ||
], | ||
moderateComments: [ | ||
{ action: 'plugins::comments.read', subject: null }, | ||
{ action: 'plugins::comments.moderate.block.comment', subject: null }, | ||
], | ||
moderateThreads: [ | ||
{ action: 'plugins::comments.read', subject: null }, | ||
{ action: 'plugins::comments.moderate.block.thread', subject: null }, | ||
], | ||
moderateReports: [ | ||
{ action: 'plugins::comments.read', subject: null }, | ||
{ action: 'plugins::comments.moderate.reports', subject: null }, | ||
], | ||
}; | ||
|
||
export default pluginPermissions; |
Oops, something went wrong.