diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-07 23:54:22 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-07 23:54:22 -0700 |
commit | 5933f13ab72337554d5fa23a064a3f61f3dee5e4 (patch) | |
tree | e22f6bd2c1b4fe6957984ed8fd9de9b655182508 /mod/profile.php | |
parent | adce88e564f2e9a6c8487bf23762afe1413ed263 (diff) | |
download | volse-hubzilla-5933f13ab72337554d5fa23a064a3f61f3dee5e4.tar.gz volse-hubzilla-5933f13ab72337554d5fa23a064a3f61f3dee5e4.tar.bz2 volse-hubzilla-5933f13ab72337554d5fa23a064a3f61f3dee5e4.zip |
default acl's
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/profile.php b/mod/profile.php index c8cfc4edd..9d9eb05b6 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -123,13 +123,16 @@ function profile_content(&$a, $update = false) { require_once('view/acl_selectors.php'); $tpl = file_get_contents("view/jot.tpl"); - + if(is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid'])))) + $lockstate = 'lock'; + else + $lockstate = 'unlock'; $o .= replace_macros($tpl,array( '$baseurl' => $a->get_baseurl(), '$return_path' => $a->cmd, '$visitor' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? 'block' : 'none'), - '$lockstate' => 'unlock', - '$acl' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? populate_acl() : ''), + '$lockstate' => $lockstate, + '$acl' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? populate_acl($a->user) : ''), '$profile_uid' => $a->profile['profile_uid'] )); } |