Skip to content
Snippets Groups Projects
Commit d802a5d4 authored by Matthias Brun's avatar Matthias Brun
Browse files

Fix archiving button being shown to users who don't have the permissions

parent 0b9c1247
No related branches found
No related tags found
No related merge requests found
......@@ -44,14 +44,16 @@
</li>
{{/if}}
{{#if notDirect}}
<li>
<label>{{_ "Archive_Unarchive"}}</label>
{{#if archived}}
<button class="button unarchive"><span>{{_ "Unarchive"}}</span></button>
{{else}}
<button class="button archive"><span>{{_ "Archive"}}</span></button>
{{/if}}
</li>
{{#if canEdit}}
<li>
<label>{{_ "Archive_Unarchive"}}</label>
{{#if archived}}
<button class="button unarchive"><span>{{_ "Unarchive"}}</span></button>
{{else}}
<button class="button archive"><span>{{_ "Archive"}}</span></button>
{{/if}}
</li>
{{/if}}
{{/if}}
{{#each channelSettings}}
{{> Template.dynamic template=template data=data}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment