Przeglądaj źródła

Merge pull request #1680 from sharelatex/cmg-hide-unarchive

Only show unarchive button for project owners

GitOrigin-RevId: 5990be70cfcd9cf0708248d78845dc163a59a8b3
Paulo Jorge Reis 7 lat temu
rodzic
commit
9e63211a17
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      services/web/app/views/project/list/item.pug

+ 1 - 1
services/web/app/views/project/list/item.pug

@@ -96,7 +96,7 @@ if settings.overleaf
 			)
 				i.icon.fa.fa-sign-out(aria-hidden="true")
 			button.btn.btn-link.action-btn(
-				ng-if="project.archived"
+				ng-if="project.archived && isOwner()"
 				aria-label=translate('unarchive'),
 				tooltip=translate('unarchive'),
 				tooltip-placement="top",