massUpdateDisabled param in clientDefs

This commit is contained in:
Yuri Kuznetsov
2022-06-27 19:13:49 +03:00
parent f9e30b778d
commit 4895066215
+4 -2
View File
@@ -1825,7 +1825,8 @@ function (Dep, MassActionHelper, ExportHelper) {
if (
this.getAcl().get('massUpdatePermission') !== 'yes' ||
this.editDisabled ||
this.massUpdateDisabled
this.massUpdateDisabled ||
this.getMetadata().get(['clientDefs', this.scope, 'massUpdateDisabled'])
) {
this.removeMassAction('massUpdate');
}
@@ -1833,7 +1834,8 @@ function (Dep, MassActionHelper, ExportHelper) {
if (
!this.massFollowDisabled &&
this.getMetadata().get(['scopes', this.entityType, 'stream']) &&
this.getAcl().check(this.entityType, 'stream')
this.getAcl().check(this.entityType, 'stream') ||
this.getMetadata().get(['clientDefs', this.scope, 'massFollowDisabled'])
) {
this.addMassAction('follow');
this.addMassAction('unfollow', true);