From 967973f354ed03242efccef8ff1191e8e14f2c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Tue, 23 Apr 2019 10:21:23 -0400 Subject: [PATCH] Only show label version button for users with write permission (#1665) Only show label version button for users with write permission GitOrigin-RevId: f0a6504b51c1e9018942592ad6784599694c571a --- services/web/app/views/project/editor/history/toolbarV2.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/project/editor/history/toolbarV2.pug b/services/web/app/views/project/editor/history/toolbarV2.pug index b61716b37c..334e4aa000 100644 --- a/services/web/app/views/project/editor/history/toolbarV2.pug +++ b/services/web/app/views/project/editor/history/toolbarV2.pug @@ -44,7 +44,7 @@ ) button.history-toolbar-btn( ng-click="showAddLabelDialog();" - ng-if="!history.showOnlyLabels" + ng-if="!history.showOnlyLabels && permissions.write" ng-disabled="isHistoryLoading() || history.selection.range.toV == null || history.selection.range.fromV == null" ) i.fa.fa-tag