aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-06 17:59:34 -0800
committerzotlabs <mike@macgirvin.com>2017-03-06 17:59:34 -0800
commita18e8e1ede672f8733ef41250099880836efa7f7 (patch)
treecc7458dae330d4dcef469019975da11e76a591f6
parent595cb13d8f2793fcefdc1566715848479460e479 (diff)
downloadvolse-hubzilla-a18e8e1ede672f8733ef41250099880836efa7f7.tar.gz
volse-hubzilla-a18e8e1ede672f8733ef41250099880836efa7f7.tar.bz2
volse-hubzilla-a18e8e1ede672f8733ef41250099880836efa7f7.zip
add public_policy to the nwiki container also. This should not affect the recent bug as presented, but is being added for consistency.
-rw-r--r--Zotlabs/Lib/NativeWiki.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Lib/NativeWiki.php b/Zotlabs/Lib/NativeWiki.php
index 519102d24..7786ec25a 100644
--- a/Zotlabs/Lib/NativeWiki.php
+++ b/Zotlabs/Lib/NativeWiki.php
@@ -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);