瀏覽代碼

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