Просмотр исходного кода

Only show label version button for users with write permission (#1665)

Only show label version button for users with write permission

GitOrigin-RevId: f0a6504b51c1e9018942592ad6784599694c571a
Timothée Alby 7 лет назад
Родитель
Сommit
967973f354
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/app/views/project/editor/history/toolbarV2.pug

+ 1 - 1
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