summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/priv.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/priv.inc')
-rw-r--r--src/etc/inc/priv.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/inc/priv.inc b/src/etc/inc/priv.inc
index 9a0c00b..a2e2763 100644
--- a/src/etc/inc/priv.inc
+++ b/src/etc/inc/priv.inc
@@ -285,8 +285,8 @@ function getAllowedPages($username, &$attributes = array()) {
}
// obtain ldap groups if we are in ldap mode
if ($authcfg['type'] == "ldap") {
- if ( isset($_SESSION["ldap_allowed_groups"]) &&
- ( time() <= $_SESSION["auth_check_time"]+ $recheck_time) ) {
+ if (isset($_SESSION["ldap_allowed_groups"]) &&
+ (time() <= $_SESSION["auth_check_time"] + $recheck_time)) {
$allowed_groups = $_SESSION["ldap_allowed_groups"];
} else {
$allowed_groups = @ldap_get_groups($username, $authcfg);
@@ -294,8 +294,8 @@ function getAllowedPages($username, &$attributes = array()) {
$_SESSION["auth_check_time"] = time();
}
} elseif ($authcfg['type'] == "radius") {
- if ( isset($_SESSION["radius_allowed_groups"]) &&
- (time() <= $_SESSION["auth_check_time"] + $recheck_time) ) {
+ if (isset($_SESSION["radius_allowed_groups"]) &&
+ (time() <= $_SESSION["auth_check_time"] + $recheck_time)) {
$allowed_groups = $_SESSION["radius_allowed_groups"];
} else {
$allowed_groups = @radius_get_groups($attributes);
OpenPOWER on IntegriCloud