aboutsummaryrefslogtreecommitdiffstats
path: root/mod/webpages.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/webpages.php')
-rw-r--r--mod/webpages.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/webpages.php b/mod/webpages.php
index e39e6764b..121971b12 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -98,8 +98,8 @@ function webpages_content(&$a) {
else
$channel_acl = array();
- $_is_owner = (local_channel() && (local_channel() == $owner));
- $o = profile_tabs($a,$_is_owner, $a->profile['channel_address']);
+ $is_owner = ($uid && $uid == $owner);
+ $o = profile_tabs($a, $is_owner, $a->profile['channel_address']);
$x = array(
'webpage' => ITEM_WEBPAGE,
@@ -107,7 +107,8 @@ function webpages_content(&$a) {
'nickname' => $a->profile['channel_address'],
'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
'bang' => '',
- 'acl' => (($uid && $uid == $owner) ? populate_acl($channel_acl,false) : ''),
+ 'acl' => (($is_owner) ? populate_acl($channel_acl,false) : ''),
+ 'showacl' => (($is_owner) ? true : false),
'visitor' => true,
'profile_uid' => intval($owner),
'mimetype' => $mimetype,