summaryrefslogtreecommitdiffstats
path: root/etc/inc/priv.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/priv.inc')
-rw-r--r--etc/inc/priv.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/priv.inc b/etc/inc/priv.inc
index 7549844..851643b 100644
--- a/etc/inc/priv.inc
+++ b/etc/inc/priv.inc
@@ -278,7 +278,7 @@ function getPrivPages(& $entry, & $allowed_pages) {
}
}
-function getAllowedPages($username) {
+function getAllowedPages($username, &$attributes = array()) {
global $config, $_SESSION;
if (!function_exists("ldap_connect")) {
@@ -292,6 +292,8 @@ function getAllowedPages($username) {
// obtain ldap groups if we are in ldap mode
if ($authcfg['type'] == "ldap") {
$allowed_groups = @ldap_get_groups($username, $authcfg);
+ } elseif ($authcfg['type'] == "radius") {
+ $allowed_groups = @radius_get_groups($attributes);
}
if (!$allowed_groups) {
// search for a local user by name
OpenPOWER on IntegriCloud