Skip to content

Commit

Permalink
New if acl statement
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Feb 11, 2020
1 parent 77648d8 commit 281535d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/omnix/templates/extra/browser.html.tpl
Expand Up @@ -31,9 +31,11 @@
<div class="media-target"></div>
<div class="operations-target">
<span class="button button-add" data-reference="{{ url_for('new_media_browser', id = 0) }}">Add Media</span>
<span>//</span>
<span class="button button-confirm button-clear" data-reference="{{ url_for('clear_media_browser', id = 0) }}"
data-message="Do you really want to clear all media values for entity ?">Clear Media</span>
{% if acl("foundation.root_entity.clear_media") %}
<span>//</span>
<span class="button button-confirm button-clear" data-reference="{{ url_for('clear_media_browser', id = 0) }}"
data-message="Do you really want to clear all media values for entity ?">Clear Media</span>
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit 281535d

Please sign in to comment.