summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/priv.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-13 11:15:22 +0545
committerPhil Davis <phil.davis@inf.org>2017-02-13 11:15:22 +0545
commit0fafb3cd43e56aef69b9da1896d75dd2a695c0ce (patch)
tree7c1ee505ccc2c5121c6ff6e4d6375f437d00c640 /src/etc/inc/priv.inc
parentea9d2cd377f22a90795e6874c4d033d0ae98eca6 (diff)
downloadpfsense-0fafb3cd43e56aef69b9da1896d75dd2a695c0ce.zip
pfsense-0fafb3cd43e56aef69b9da1896d75dd2a695c0ce.tar.gz
getAllowedPages consistent code format
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