From faf6178fa8c3da4fad5c73bc85bd700bb70235bc Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 10 Nov 2017 11:09:46 +0000 Subject: [PATCH] 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. --- services/web/app/views/project/editor/editor.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/project/editor/editor.pug b/services/web/app/views/project/editor/editor.pug index 8c43c0b002..dc40d7b9ba 100644 --- a/services/web/app/views/project/editor/editor.pug +++ b/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