mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:15:12 +00:00
fix the lock state when using forum mode
This commit is contained in:
parent
43e064749c
commit
f3b560b453
1 changed files with 5 additions and 3 deletions
|
@ -158,14 +158,16 @@ function network_content(&$a, $update = 0, $load = false) {
|
||||||
'deny_gid' => $channel['channel_deny_gid']
|
'deny_gid' => $channel['channel_deny_gid']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$private_editing = ((($group || $cid) && (! intval($_GET['pf']))) ? true : false);
|
||||||
|
|
||||||
$x = array(
|
$x = array(
|
||||||
'is_owner' => true,
|
'is_owner' => true,
|
||||||
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
||||||
'default_location' => $channel['channel_location'],
|
'default_location' => $channel['channel_location'],
|
||||||
'nickname' => $channel['channel_address'],
|
'nickname' => $channel['channel_address'],
|
||||||
'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
'lockstate' => (($private_editing || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
||||||
'acl' => populate_acl((($group || $cid) ? $def_acl : $channel_acl)),
|
'acl' => populate_acl((($private_editing) ? $def_acl : $channel_acl)),
|
||||||
'bang' => (($group || $cid) ? '!' : ''),
|
'bang' => (($private_editing) ? '!' : ''),
|
||||||
'visitor' => true,
|
'visitor' => true,
|
||||||
'profile_uid' => local_channel()
|
'profile_uid' => local_channel()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue