Commit ec0480ed authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells
Browse files

Bug 1683224: Hide 'add/copy' buttons on group pages/collections



If the user is a member without editing rights

behatnotneeded

Change-Id: Ibf33a1a87be5853ba543008e9969168eb3fb125a
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent cd94bc5a
{include file="header.tpl"}
{if !$noedit}
<div class="btn-top-right btn-group btn-group-top {if $GROUP} pagetabs{/if}">
<a id="addview-button" class="btn btn-default" href="{$WWWROOT}view/edit.php?new=1{$urlparamsstr}">
<span class="icon icon-plus icon-lg left" role="presentation" aria-hidden="true"></span>
......@@ -10,6 +10,7 @@
{str section=mahara tag=copy}
</a>
</div>
{/if}
{$searchform|safe}
<div class="grouppageswrap view-container">
......
{include file="header.tpl"}
{if !$noedit}
<div class="btn-top-right btn-group btn-group-top {if $GROUP} pagetabs{/if}">
<a id="addview-button" class="btn btn-default" href="{$WWWROOT}view/edit.php?new=1{$urlparamsstr}">
<span class="icon icon-plus icon-lg left" role="presentation" aria-hidden="true"></span>
......@@ -10,6 +10,7 @@
{str section=mahara tag=copy}
</a>
</div>
{/if}
{$searchform|safe}
<div class="grouppageswrap view-container">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment