summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting
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/statistics_reporting
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/statistics_reporting')
-rw-r--r--modules-available/statistics_reporting/permissions/permissions.json36
1 files changed, 26 insertions, 10 deletions
diff --git a/modules-available/statistics_reporting/permissions/permissions.json b/modules-available/statistics_reporting/permissions/permissions.json
index d967b75d..1244027e 100644
--- a/modules-available/statistics_reporting/permissions/permissions.json
+++ b/modules-available/statistics_reporting/permissions/permissions.json
@@ -1,10 +1,26 @@
-[
- "table.view.total",
- "table.view.location",
- "table.view.client",
- "table.view.user",
- "table.view.vm",
- "table.export",
- "reporting.download",
- "reporting.change"
-] \ No newline at end of file
+{
+ "reporting.change": {
+ "location-aware": false
+ },
+ "reporting.download": {
+ "location-aware": false
+ },
+ "table.export": {
+ "location-aware": false
+ },
+ "table.view.client": {
+ "location-aware": true
+ },
+ "table.view.location": {
+ "location-aware": true
+ },
+ "table.view.total": {
+ "location-aware": false
+ },
+ "table.view.user": {
+ "location-aware": false
+ },
+ "table.view.vm": {
+ "location-aware": false
+ }
+} \ No newline at end of file