aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-06 17:59:34 -0800
committerzotlabs <mike@macgirvin.com>2017-03-06 18:01:18 -0800
commitc3c4254882c80bad85f05e174f97d777a11be4a0 (patch)
tree3abd36efd9a6719b0b3ea4f0c35ac52f3368c4ec
parent751c4c3169df6238aad561d00b8c8b92bb9b676e (diff)
downloadvolse-hubzilla-c3c4254882c80bad85f05e174f97d777a11be4a0.tar.gz
volse-hubzilla-c3c4254882c80bad85f05e174f97d777a11be4a0.tar.bz2
volse-hubzilla-c3c4254882c80bad85f05e174f97d777a11be4a0.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);