aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/NativeWikiPage.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-06 22:32:05 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-06 22:32:05 +0100
commit9e44b0727513d820336cd4c51350d62b13cf8479 (patch)
treef6bd2df965b36e0d054112398e8022f8af90e2a3 /Zotlabs/Lib/NativeWikiPage.php
parent99e681c09faa245f9ac06a0a502c3c89a49490cb (diff)
downloadvolse-hubzilla-9e44b0727513d820336cd4c51350d62b13cf8479.tar.gz
volse-hubzilla-9e44b0727513d820336cd4c51350d62b13cf8479.tar.bz2
volse-hubzilla-9e44b0727513d820336cd4c51350d62b13cf8479.zip
allow unauthenticated access to public wiki pages
Diffstat (limited to 'Zotlabs/Lib/NativeWikiPage.php')
-rw-r--r--Zotlabs/Lib/NativeWikiPage.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/Zotlabs/Lib/NativeWikiPage.php b/Zotlabs/Lib/NativeWikiPage.php
index 25e454cb7..e9f8a32c9 100644
--- a/Zotlabs/Lib/NativeWikiPage.php
+++ b/Zotlabs/Lib/NativeWikiPage.php
@@ -232,7 +232,11 @@ class NativeWikiPage {
}
}
- $sql_extra = item_permissions_sql($channel_id,$observer_hash);
+ $sql_extra = '';
+
+ if($w['wiki']['allow_cid'] || $w['wiki']['allow_gid'] || $w['wiki']['deny_cid'] || $w['wiki']['deny_gid'])
+ $sql_extra .= item_permissions_sql($channel_id,$observer_hash);
+
if($revision == (-1))
$sql_extra .= " order by revision desc ";
elseif($revision)
@@ -284,7 +288,11 @@ class NativeWikiPage {
}
}
- $sql_extra = item_permissions_sql($channel_id,$observer_hash);
+ $sql_extra = '';
+
+ if($w['wiki']['allow_cid'] || $w['wiki']['allow_gid'] || $w['wiki']['deny_cid'] || $w['wiki']['deny_gid'])
+ $sql_extra .= item_permissions_sql($channel_id,$observer_hash);
+
$sql_extra .= " order by revision desc ";
$r = null;