aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/settings.php b/mod/settings.php
index bd779ad4e..98f86c92f 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -116,11 +116,12 @@ function settings_post(&$a) {
if(! function_exists('settings_content')) {
function settings_content(&$a) {
- if((! x($_SESSION['authenticated'])) && (! (x($_SESSION,'uid')))) {
- $_SESSION['sysmsg'] .= "Permission denied." . EOL;
+ if(! local_user()) {
+ notice( t('Permission denied.') . EOL );
return;
}
+ require_once('view/acl_selectors.php');
$username = $a->user['username'];
$email = $a->user['email'];
@@ -159,8 +160,9 @@ function settings_content(&$a) {
'$email' => $email,
'$nickname_block' => $nickname_block,
'$timezone' => $timezone,
- '$zoneselect' => select_timezone($timezone)
- ));
+ '$zoneselect' => select_timezone($timezone),
+ '$acl_select' => populate_acl()
+ ));
return $o;