summaryrefslogtreecommitdiffstats
path: root/inc/permission.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-02 10:47:53 +0200
committerSimon Rettberg2019-05-02 10:47:53 +0200
commitad4362a29096b30b4fe4fe8db818affc81720481 (patch)
treed4a9c1c05808fdd7a1e5dd9b767c571939af4c63 /inc/permission.inc.php
parent[statistics] Update translations (diff)
downloadslx-admin-ad4362a29096b30b4fe4fe8db818affc81720481.tar.gz
slx-admin-ad4362a29096b30b4fe4fe8db818affc81720481.tar.xz
slx-admin-ad4362a29096b30b4fe4fe8db818affc81720481.zip
[locations] subnet inputs: disabled -> readonly; disable save button
There was unfinished code to disable the save button if there are no actions allowed to perform in the location detail box, which is now working. Also make the text inputs readonly instead of diabled if we're not allowed to edit them, so copy & paste still works.
Diffstat (limited to 'inc/permission.inc.php')
-rw-r--r--inc/permission.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/permission.inc.php b/inc/permission.inc.php
index aaef6ba6..3a7bdc36 100644
--- a/inc/permission.inc.php
+++ b/inc/permission.inc.php
@@ -40,7 +40,10 @@ class Permission
$temp = ['disabled' => 'disabled', 'readonly' => 'readonly'];
}
if (!$one && !is_null($noneAvailDisabled)) {
- $array[$noneAvailDisabled]['disabled'] = true;
+ $array[$noneAvailDisabled] = [
+ 'disabled' => 'disabled',
+ 'readonly' => 'readonly',
+ ];
}
}