Skip to content

Commit

Permalink
UPDATE: Add role labels and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-K committed Nov 30, 2023
1 parent fae893a commit 222f1d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Configuration/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,35 @@ privilegeTargets:

roles:
'Wegmeister.DatabaseStorage:DatabaseStorageViewer':
label: Database Storage Viewer
description: User is allowed to view all database storage lists and their entries.
privileges:
- privilegeTarget: 'Wegmeister.DatabaseStorage:Backend.ListDatabaseStorageItems'
permission: GRANT
- privilegeTarget: 'Wegmeister.DatabaseStorage:Backend.DatabaseStorageViewer'
permission: GRANT

'Wegmeister.DatabaseStorage:DatabaseStorageExporter':
label: Database Storage Exporter
description: |
User is allowed to export all database storage lists.
Requires a role that can view the lists, otherwise only direct links to the export will work.
privileges:
- privilegeTarget: 'Wegmeister.DatabaseStorage:Backend.DatabaseStorageExporter'
permission: GRANT

'Wegmeister.DatabaseStorage:DatabaseStorageDeleter':
label: Database Storage Deleter
description: |
User is allowed to delete all database storage lists or single entries.
Requires a role that can view the lists, otherwise only direct links to delete a list or an entry will work.
privileges:
- privilegeTarget: 'Wegmeister.DatabaseStorage:Backend.DatabaseStorageDeleter'
permission: GRANT

'Wegmeister.DatabaseStorage:DatabaseStorageAdmin':
label: Database Storage Admin
description: User is allowed to view, export and delete all database storage lists and their entries.
privileges:
- privilegeTarget: 'Wegmeister.DatabaseStorage:Backend.ListDatabaseStorageItems'
permission: GRANT
Expand Down

0 comments on commit 222f1d1

Please sign in to comment.