do not show acl button if not owner
This commit is contained in:
parent
dfc88a41df
commit
29061b3ee3
@ -98,8 +98,8 @@ function webpages_content(&$a) {
|
|||||||
else
|
else
|
||||||
$channel_acl = array();
|
$channel_acl = array();
|
||||||
|
|
||||||
$_is_owner = (local_channel() && (local_channel() == $owner));
|
$is_owner = ($uid && $uid == $owner);
|
||||||
$o = profile_tabs($a,$_is_owner, $a->profile['channel_address']);
|
$o = profile_tabs($a, $is_owner, $a->profile['channel_address']);
|
||||||
|
|
||||||
$x = array(
|
$x = array(
|
||||||
'webpage' => ITEM_WEBPAGE,
|
'webpage' => ITEM_WEBPAGE,
|
||||||
@ -107,7 +107,8 @@ function webpages_content(&$a) {
|
|||||||
'nickname' => $a->profile['channel_address'],
|
'nickname' => $a->profile['channel_address'],
|
||||||
'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
||||||
'bang' => '',
|
'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,
|
'visitor' => true,
|
||||||
'profile_uid' => intval($owner),
|
'profile_uid' => intval($owner),
|
||||||
'mimetype' => $mimetype,
|
'mimetype' => $mimetype,
|
||||||
|
Reference in New Issue
Block a user