aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-25 12:21:52 -0800
committerzotlabs <mike@macgirvin.com>2017-01-25 12:21:52 -0800
commit45dbd31d286838254cd1ae60e4ebb39c112526be (patch)
treeba4bd74b443e45da3e21a3daccfa246c247fd34e /view/tpl
parent45a9eca792b349984ca11ab9a65e87e65625a718 (diff)
downloadvolse-hubzilla-45dbd31d286838254cd1ae60e4ebb39c112526be.tar.gz
volse-hubzilla-45dbd31d286838254cd1ae60e4ebb39c112526be.tar.bz2
volse-hubzilla-45dbd31d286838254cd1ae60e4ebb39c112526be.zip
only allow wiki owner to delete pages
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/wiki_page_list.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl
index a270e6cee..78657ec10 100644
--- a/view/tpl/wiki_page_list.tpl
+++ b/view/tpl/wiki_page_list.tpl
@@ -5,7 +5,7 @@
{{if $pages}}
{{foreach $pages as $page}}
<li id="{{$page.link_id}}">
- {{if $page.resource_id && $canadd}}
+ {{if $page.resource_id && $candel}}
<i class="widget-nav-pills-icons fa fa-trash-o drop-icons" onclick="wiki_delete_page('{{$page.title}}', '{{$page.url}}', '{{$page.resource_id}}', '{{$page.link_id}}')"></i>
{{/if}}
<a href="/wiki/{{$channel}}/{{$wikiname}}/{{$page.url}}">{{$page.title}}</a>