diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-29 21:23:56 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-29 21:23:56 -0400 |
commit | 4b350b909025ba2102d5ad2c5ee32b3c4eecaa48 (patch) | |
tree | daf198beaba4a45e1256ae03015c6d94277cfb9b /view | |
parent | a3dfdd9d3886451f5e97940387a56171c5810cf6 (diff) | |
download | volse-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 'view')
-rw-r--r-- | view/tpl/wiki.tpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index a6f274bfb..e6e8c720b 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -14,8 +14,10 @@ <div class="generic-content-wrapper"> <div class="section-title-wrapper"> <div class="pull-right"> + {{if $showPageControls}} <button class="btn btn-primary btn-xs" onclick="$('#new-page-form-wrapper').hide(); openClose('new-wiki-form-wrapper');">New Wiki</button> <button class="btn btn-success btn-xs" onclick="$('#new-wiki-form-wrapper').hide(); openClose('new-page-form-wrapper');">New Page</button> + {{/if}} <button id="fullscreen-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(); adjustFullscreenTopBarHeight();"><i class="fa fa-expand"></i></button> <button id="inline-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(false); |