Explorar o código

Merge pull request #5023 from mfilser/attachment_rename_and_delete_for_non_board_admins

Attachment rename and delete works now again for non board admins
Lauri Ojansivu hai 1 ano
pai
achega
3c374a2891
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  1. 4 5
      client/components/cards/attachments.jade

+ 4 - 5
client/components/cards/attachments.jade

@@ -87,14 +87,13 @@ template(name="attachmentGallery")
             .attachment-actions
               a.js-download(href="{{link}}?download=true", download="{{name}}")
                 i.fa.fa-download.icon(title="{{_ 'download'}}")
-              if currentUser.isBoardAdmin
-                a.js-rename
-                  i.fa.fa-pencil-square-o.icon(title="{{_ 'rename'}}")
-                a.js-confirm-delete
-                  i.fa.fa-trash.icon(title="{{_ 'delete'}}")
               if currentUser.isBoardMember
                 unless currentUser.isCommentOnly
                   unless currentUser.isWorker
+                    a.js-rename
+                      i.fa.fa-pencil-square-o.icon(title="{{_ 'rename'}}")
+                    a.js-confirm-delete
+                      i.fa.fa-trash.icon(title="{{_ 'delete'}}")
                     a.fa.fa-navicon.icon.js-open-attachment-menu(data-attachment-link="{{link}}" title="{{_ 'attachmentActionsPopup-title'}}")