summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/inc/pagedozmodusers.inc.php
diff options
context:
space:
mode:
authorChristian Hofmaier2017-12-07 18:20:06 +0100
committerChristian Hofmaier2017-12-07 18:20:06 +0100
commit0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be (patch)
treefccf8e5b4db5c6a07286f936f23249966bedee84 /modules-available/dozmod/inc/pagedozmodusers.inc.php
parent[sysconfig] Overview: Make mouseover highlighting work in the other direction... (diff)
downloadslx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.tar.gz
slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.tar.xz
slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.zip
[dozmod] reworked permission system from "click and you get error" to "button is disabled due to lack of permission" + in log as there is no button, the links to the user/target are disabled (not clickable).
Diffstat (limited to 'modules-available/dozmod/inc/pagedozmodusers.inc.php')
-rw-r--r--modules-available/dozmod/inc/pagedozmodusers.inc.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules-available/dozmod/inc/pagedozmodusers.inc.php b/modules-available/dozmod/inc/pagedozmodusers.inc.php
index 621f7d34..f4ac852b 100644
--- a/modules-available/dozmod/inc/pagedozmodusers.inc.php
+++ b/modules-available/dozmod/inc/pagedozmodusers.inc.php
@@ -22,15 +22,10 @@ class Page_dozmod_users extends Page
if ($action === 'setmail' || $action === 'setsu' || $action == 'setlogin') {
if (User::hasPermission("users.".$action)) {
$this->setUserOption($action);
- } else {
- die("No permission.");
}
-
} elseif ($action === 'setorglogin') {
if (User::hasPermission("users.orglogin")) {
$this->setOrgOption($action);
- } else {
- die("No permission.");
}
} else {
die('No such action');