summaryrefslogtreecommitdiffstats
path: root/inc/permission.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-02 10:47:53 +0200
committerSimon Rettberg2019-05-23 12:19:33 +0200
commit352c9268ad0e9259519bdbde77239b9aea678e06 (patch)
treee5389d14bc238b5669f867fe5712d7c4c8749aee /inc/permission.inc.php
parent[statistics] Update translations (diff)
downloadslx-admin-352c9268ad0e9259519bdbde77239b9aea678e06.tar.gz
slx-admin-352c9268ad0e9259519bdbde77239b9aea678e06.tar.xz
slx-admin-352c9268ad0e9259519bdbde77239b9aea678e06.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',
+ ];
}
}