summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/auth.inc21
1 files changed, 0 insertions, 21 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index b142a6e..3d0491d 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -377,27 +377,6 @@ function isSystemAdmin($username = "") {
if(!function_exists("ldap_connect"))
return;
-/* if($config['system']['webgui']['backend'] == "ldap") {
- log_error("Calling LDAP_GET_GROUPS from the second section");
- $groups = ldap_get_groups($username);
- if(is_array($groups)){
- if(in_array("admins", $groups)) {
- $_SESSION['isSystemAdmin'] = true;
- return true;
- }
- }
- }
- if($config['system']['webgui']['backend'] == "ldapother") {
- log_error("Calling LDAP_GET_GROUPS from the first section");
- $groups = ldap_get_groups($username);
- if(is_array($groups)){
- if(in_array("admins", $groups)) {
- $_SESSION['isSystemAdmin'] = true;
- return true;
- }
- }
- } */
-
if ($username == "") {
$_SESSION['isSystemAdmin'] = false;
return 0;
OpenPOWER on IntegriCloud