aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-29 21:23:56 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-29 21:23:56 -0400
commit4b350b909025ba2102d5ad2c5ee32b3c4eecaa48 (patch)
treedaf198beaba4a45e1256ae03015c6d94277cfb9b /Zotlabs/Module
parenta3dfdd9d3886451f5e97940387a56171c5810cf6 (diff)
downloadvolse-hubzilla-4b350b909025ba2102d5ad2c5ee32b3c4eecaa48.tar.gz
volse-hubzilla-4b350b909025ba2102d5ad2c5ee32b3c4eecaa48.tar.bz2
volse-hubzilla-4b350b909025ba2102d5ad2c5ee32b3c4eecaa48.zip
Fixed bug in access control. Hide new wiki/page buttons if not channel owner.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Wiki.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index 946529424..030e34cf6 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -97,10 +97,8 @@ class Wiki extends \Zotlabs\Web\Controller {
$wikiheader = rawurldecode(argv(2)) . ': ' . rawurldecode($pagename); // show wiki name and page
$p = wiki_get_page_content(array('wiki_resource_id' => $resource_id, 'page' => $pagename));
if(!$p['success']) {
- logger('wiki_get_page_content: ' . $p['message']);
$content = 'Error retrieving page content. Try again.';
}
- logger('content: ' . $content);
$content = ($p['content'] !== '' ? $p['content'] : '"# New page\n"');
$hide_editor = false;
$showPageControls = $wiki_owner;