From 48796c046bdfc0c842cbd8d0a1d3b43d1cda935a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Ka=CC=88ser?= Date: Tue, 11 Aug 2015 20:32:28 +0200 Subject: [PATCH] non share creators/admins should not see the members --- ipynbsrv/web/templates/web/shares/manage.html | 110 +++++++++--------- 1 file changed, 56 insertions(+), 54 deletions(-) diff --git a/ipynbsrv/web/templates/web/shares/manage.html b/ipynbsrv/web/templates/web/shares/manage.html index f047c62..ad4a1d2 100644 --- a/ipynbsrv/web/templates/web/shares/manage.html +++ b/ipynbsrv/web/templates/web/shares/manage.html @@ -55,64 +55,44 @@

Share

-

Shared with...

-
-
-
- - {% if groups|length_is:"1" %} - + {% if groups|length_is:"1" %} + + {% else %} + - {% else %} - - {% endif %} -
-
-
- - - - - - - - - {% for group in share.access_groups %} - - - - - {% endfor %} - - {% for user in users %} - {% if user.backend_user.collab_group in share.access_groups %} + + + +
MemberActions
{{ group.name }} - {% if request.user.backend_user.id == share.owner.id %} - {% if member.backend_user.id != share.owner %} -
- {% csrf_token %} - - - -
{% endif %} - {% endif %} -
+ - + + + + + + {% for group in share.access_groups %} + + - {% endif %} - {% endfor %} - -
{{ user.backend_user.collab_group.name }}MemberActions
{{ group.name }} {% if request.user.backend_user.id == share.owner.id %} {% if member.backend_user.id != share.owner %}
{% csrf_token %} - + @@ -121,13 +101,35 @@

Shared with...

{% endif %}
+ {% endfor %} - {% include 'web/shares/modal_addusers.html' with id=share.id users=users share=share origin='manage' csrf_token=csrf_token only %} - {% include 'web/shares/modal_addgroups.html' with id=share.id groups=groups share=share origin='manage' csrf_token=csrf_token only %} + {% for user in users %} + {% if user.backend_user.collab_group in share.access_groups %} + + {{ user.backend_user.collab_group.name }} + + {% if request.user.backend_user.id == share.owner.id %} + {% if member.backend_user.id != share.owner %} + + {% csrf_token %} + + + + + {% endif %} + {% endif %} + + + {% endif %} + {% endfor %} + + + + {% include 'web/shares/modal_addusers.html' with id=share.id users=users share=share origin='manage' csrf_token=csrf_token only %} + {% include 'web/shares/modal_addgroups.html' with id=share.id groups=groups share=share origin='manage' csrf_token=csrf_token only %} + {% endif %} {% endblock %}