summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/permissions/permissions.json
diff options
context:
space:
mode:
authorSimon Rettberg2018-02-12 14:17:07 +0100
committerSimon Rettberg2018-02-12 14:17:07 +0100
commita8b0095b335780ae0bb950bc44021215d43a6b2d (patch)
tree08b61723fe4facaa6956730f02fa5ede250d9cc6 /modules-available/exams/permissions/permissions.json
parent[backup] Use permission helpers (diff)
downloadslx-admin-a8b0095b335780ae0bb950bc44021215d43a6b2d.tar.gz
slx-admin-a8b0095b335780ae0bb950bc44021215d43a6b2d.tar.xz
slx-admin-a8b0095b335780ae0bb950bc44021215d43a6b2d.zip
[permissionmanager] Introduce "location-aware" flag for permissions
This flag tells wether the permission can be restricted to certain locations in a meaningful way. This flag has to be set in the permissions.json of the according module. For example, the permission to reboot the server cannot be limited to certain locations in a meaningful way, while the view of the client log can be filtered to only show log entries for clients in specific locations.
Diffstat (limited to 'modules-available/exams/permissions/permissions.json')
-rw-r--r--modules-available/exams/permissions/permissions.json13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules-available/exams/permissions/permissions.json b/modules-available/exams/permissions/permissions.json
index 215b3399..e44974b6 100644
--- a/modules-available/exams/permissions/permissions.json
+++ b/modules-available/exams/permissions/permissions.json
@@ -1,5 +1,8 @@
-[
- "exams.add",
- "exams.delete",
- "exams.edit"
-] \ No newline at end of file
+{
+ "exams.edit": {
+ "location-aware": true
+ },
+ "exams.view": {
+ "location-aware": true
+ }
+} \ No newline at end of file