aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-22 12:31:30 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-22 12:31:30 +0200
commit29061b3ee3bddcc4718e05a421435b875e97c29e (patch)
tree6477fdce840a23d1130ba7ec369fb5640d564c7f /mod
parentdfc88a41df427bbf6b0b2d41105131aee15b09c5 (diff)
downloadvolse-hubzilla-29061b3ee3bddcc4718e05a421435b875e97c29e.tar.gz
volse-hubzilla-29061b3ee3bddcc4718e05a421435b875e97c29e.tar.bz2
volse-hubzilla-29061b3ee3bddcc4718e05a421435b875e97c29e.zip
do not show acl button if not owner
Diffstat (limited to 'mod')
-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,