From c6744aac063482c4c48ed3a98d5cd8857e1261e6 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Sun, 4 Mar 2018 16:41:50 +0100
Subject: [sysconfig] Add permissions
---
.../sysconfig/templates/list-configs.html | 21 ++++++++++++++-----
.../sysconfig/templates/list-modules.html | 24 +++++++++++++++++-----
2 files changed, 35 insertions(+), 10 deletions(-)
(limited to 'modules-available/sysconfig/templates')
diff --git a/modules-available/sysconfig/templates/list-configs.html b/modules-available/sysconfig/templates/list-configs.html
index 205317b8..4db7b9b2 100644
--- a/modules-available/sysconfig/templates/list-configs.html
+++ b/modules-available/sysconfig/templates/list-configs.html
@@ -26,7 +26,7 @@
{{^current}}
-
+ name="rebuild" value="{{configid}}" title="{{lang_rebuild}}"
+ {{perms.config.edit.disabled}}>
+
+
{{/locationid}}
|
{{^locationid}}
-
-
+
+
+
+
+
+
{{/locationid}}
|
@@ -101,7 +110,9 @@
{{^locationid}}
{{/locationid}}
diff --git a/modules-available/sysconfig/templates/list-modules.html b/modules-available/sysconfig/templates/list-modules.html
index a55253ec..b91ce106 100644
--- a/modules-available/sysconfig/templates/list-modules.html
+++ b/modules-available/sysconfig/templates/list-modules.html
@@ -16,7 +16,10 @@
{{#allowDownload}}
-
+
+
+
{{/allowDownload}}
|
@@ -27,9 +30,18 @@
{{^needRebuild}}
class="refmod btn btn-default btn-xs"
{{/needRebuild}}
- name="rebuild" value="{{id}}" title="{{lang_rebuild}}">
-
-
+ name="rebuild" value="{{id}}" title="{{lang_rebuild}}" {{perms.module.edit.disabled}}>
+
+
+
+
+
+
+
+
|
{{/modules}}
@@ -40,7 +52,9 @@
--
cgit v1.2.3-55-g7522