From 4895066215e6decdc65cd8b5cea0c26ffce07861 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 27 Jun 2022 19:13:49 +0300 Subject: [PATCH] massUpdateDisabled param in clientDefs --- client/src/views/record/list.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 3ed35d1c72..b69f3f980f 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -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);