diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-30 06:09:20 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-30 06:09:20 -0700 |
commit | b399b20dee2752a038a64a8be2c89df142aae280 (patch) | |
tree | d94e361d0ec77efa3b0ceade9b762f6595bbc7eb /mod/settings.php | |
parent | f83aa6c8a57e0ba9be2cd5842899488a4c2a8514 (diff) | |
download | volse-hubzilla-b399b20dee2752a038a64a8be2c89df142aae280.tar.gz volse-hubzilla-b399b20dee2752a038a64a8be2c89df142aae280.tar.bz2 volse-hubzilla-b399b20dee2752a038a64a8be2c89df142aae280.zip |
mail, i18n, etc.
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 10 |
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; |