changeset 258:5e51ce9376ed

bulma (photo/album): only show upload area/button if user is owner of the album
author Goffi <goffi@goffi.org>
date Sat, 01 Aug 2020 17:01:31 +0200
parents 1a68c078a233
children a18374320194
files sat_templates/templates/bulma/photo/album.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/photo/album.html	Sat Aug 01 17:01:31 2020 +0200
+++ b/sat_templates/templates/bulma/photo/album.html	Sat Aug 01 17:01:31 2020 +0200
@@ -16,8 +16,8 @@
         {% endif %}
     {% endfor %}
 </div>
-{# {% if ns_photos.empty %} #}
-{% if true %}
+
+{% if directory_affiliation == 'owner' %}
     <div id="file_drop" class="box column has-border-dashed has-border-grey-light is-hidden-touch">
         <div class="has-text-weight-bold has-text-centered has-text-grey-light is-size-3">
             {% trans %}