Ver Fonte

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 há 7 anos atrás
pai
commit
967973f354

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

@@ -44,7 +44,7 @@
 	)
 	)
 		button.history-toolbar-btn(
 		button.history-toolbar-btn(
 			ng-click="showAddLabelDialog();"
 			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"
 			ng-disabled="isHistoryLoading() || history.selection.range.toV == null || history.selection.range.fromV == null"
 		) 
 		) 
 			i.fa.fa-tag
 			i.fa.fa-tag