Переглянути джерело

Restrict link-sharing onboarding popup to admins.

Only people with admin permission to the Project can see the Share
button and dialog. It doesn't make sense to alert users who can't
interact with the feature anyway.
Shane Kilkelly 9 роки тому
батько
коміт
faf6178fa8
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      services/web/app/views/project/editor/editor.pug

+ 1 - 1
services/web/app/views/project/editor/editor.pug

@@ -111,7 +111,7 @@ div.full-size(
 
 #onboarding-linksharing.onboarding-linksharing.popover(
 	ng-controller="LinkSharingOnboardingController"
-	ng-if="onboarding.linkSharing == 'unseen'"
+	ng-if="permissions.admin && onboarding.linkSharing == 'unseen'"
 	ng-class="placement"
 )
 	.popover-inner