aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-12 23:08:07 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-12 23:08:07 -0700
commit7e16f8cdae597cc8329c3cc9ce769d512ba84085 (patch)
treecf16a878c11fefc2e60950792cc028016cc0a8d0 /mod/profile.php
parenta4dbd6657ca48131731da050c5378be8c84eda0e (diff)
downloadvolse-hubzilla-7e16f8cdae597cc8329c3cc9ce769d512ba84085.tar.gz
volse-hubzilla-7e16f8cdae597cc8329c3cc9ce769d512ba84085.tar.bz2
volse-hubzilla-7e16f8cdae597cc8329c3cc9ce769d512ba84085.zip
groups and acls
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 5d1b04b33..37bf04a0c 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -141,8 +141,9 @@ function profile_content(&$a) {
$o .= replace_macros($tpl,array(
'$baseurl' => $a->get_baseurl(),
+ '$visitor' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? 'block' : 'none'),
'$lockstate' => 'unlock',
- '$acl' => populate_acl(),
+ '$acl' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? populate_acl() : ''),
'$profile_uid' => $a->profile['profile_uid']
));
}
@@ -165,7 +166,6 @@ function profile_content(&$a) {
$sql_extra = '';
// authenticated visitor - here lie dragons
-
elseif(remote_user()) {
$gs = '<<>>'; // should be impossible to match
if(count($groups)) {
@@ -178,8 +178,8 @@ function profile_content(&$a) {
AND ( `allow_gid` = '' OR `allow_gid` REGEXP '%s' )
AND ( `deny_gid` = '' OR NOT `deny_gid` REGEXP '%s') ",
- intval($visitor_id),
- intval($visitor_id),
+ intval($_SESSION['visitor_id']),
+ intval($_SESSION['visitor_id']),
$gs,
$gs
);