mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
add public_policy to the nwiki container also. This should not affect the recent bug as presented, but is being added for consistency.
This commit is contained in:
parent
595cb13d8f
commit
a18e8e1ede
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ class NativeWiki {
|
|||
$arr['obj_type'] = ACTIVITY_OBJ_WIKI;
|
||||
$arr['body'] = '[table][tr][td][h1]New Wiki[/h1][/td][/tr][tr][td][zrl=' . $wiki_url . ']' . $wiki['htmlName'] . '[/zrl][/td][/tr][/table]';
|
||||
|
||||
$arr['public_policy'] = map_scope(\Zotlabs\Access\PermissionLimits::Get($channel['channel_id'],'view_wiki'),true);
|
||||
|
||||
// Save the wiki name information using iconfig. This is shareable.
|
||||
if(! set_iconfig($arr, 'wiki', 'rawName', $wiki['rawName'], true)) {
|
||||
return array('item' => null, 'success' => false);
|
||||
|
|
Loading…
Reference in a new issue