diff options
author | Phil Davis <phil.davis@inf.org> | 2017-02-13 11:15:22 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-02-13 11:15:22 +0545 |
commit | 0fafb3cd43e56aef69b9da1896d75dd2a695c0ce (patch) | |
tree | 7c1ee505ccc2c5121c6ff6e4d6375f437d00c640 /src | |
parent | ea9d2cd377f22a90795e6874c4d033d0ae98eca6 (diff) | |
download | pfsense-0fafb3cd43e56aef69b9da1896d75dd2a695c0ce.zip pfsense-0fafb3cd43e56aef69b9da1896d75dd2a695c0ce.tar.gz |
getAllowedPages consistent code format
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/priv.inc | 8 |
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); |