diff options
author | Simon Rettberg | 2018-02-12 14:17:07 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-12 14:17:07 +0100 |
commit | a8b0095b335780ae0bb950bc44021215d43a6b2d (patch) | |
tree | 08b61723fe4facaa6956730f02fa5ede250d9cc6 /modules-available/locations | |
parent | [backup] Use permission helpers (diff) | |
download | slx-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/locations')
-rw-r--r-- | modules-available/locations/permissions/permissions.json | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/modules-available/locations/permissions/permissions.json b/modules-available/locations/permissions/permissions.json index 609a673a..06b01d2c 100644 --- a/modules-available/locations/permissions/permissions.json +++ b/modules-available/locations/permissions/permissions.json @@ -1,9 +1,23 @@ -[ - "location.view", - "location.edit", - "location.add", - "location.delete", - "subnet.edit", - "subnet.add", - "subnet.delete" -]
\ No newline at end of file +{ + "location.add": { + "location-aware": false + }, + "location.delete": { + "location-aware": false + }, + "location.edit": { + "location-aware": false + }, + "location.view": { + "location-aware": false + }, + "subnet.add": { + "location-aware": false + }, + "subnet.delete": { + "location-aware": false + }, + "subnet.edit": { + "location-aware": false + } +}
\ No newline at end of file |