mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Consider the "all" group when determining privileges. Fixes #9051
This commit is contained in:
parent
5142c80abb
commit
fe1afbb754
@ -331,7 +331,7 @@ function get_user_privileges(& $user) {
|
||||
global $config, $_SESSION;
|
||||
|
||||
$authcfg = auth_get_authserver($config['system']['webgui']['authmode']);
|
||||
$allowed_groups = array();
|
||||
$allowed_groups = array('all');
|
||||
|
||||
$privs = $user['priv'];
|
||||
if (!is_array($privs)) {
|
||||
|
||||
@ -239,7 +239,7 @@ function getAllowedPages($username, &$attributes = array()) {
|
||||
}
|
||||
|
||||
$allowed_pages = array();
|
||||
$allowed_groups = array();
|
||||
$allowed_groups = array('all');
|
||||
|
||||
phpsession_begin();
|
||||
if ($_SESSION['remoteauth']) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user