mass update skipStreamNotesAcl
This commit is contained in:
@@ -59,6 +59,8 @@ class StreamNotesAcl extends \Espo\Core\Hooks\Base
|
||||
if (!empty($options['noStream'])) return;
|
||||
if (!empty($options['silent'])) return;
|
||||
|
||||
if (!empty($options['skipStreamNotesAcl'])) return;
|
||||
|
||||
if ($entity->isNew()) return;
|
||||
|
||||
$entityType = $entity->getEntityType();
|
||||
|
||||
@@ -1328,7 +1328,7 @@ class Record extends \Espo\Core\Services\Base
|
||||
if ($this->getAcl()->check($entity, 'edit') && $this->checkEntityForMassUpdate($entity, $data)) {
|
||||
$entity->set($data);
|
||||
if ($this->checkAssignment($entity)) {
|
||||
if ($repository->save($entity)) {
|
||||
if ($repository->save($entity, ['massUpdate' => true])) {
|
||||
$idsUpdated[] = $entity->id;
|
||||
$count++;
|
||||
|
||||
@@ -1366,7 +1366,7 @@ class Record extends \Espo\Core\Services\Base
|
||||
if ($this->getAcl()->check($entity, 'edit') && $this->checkEntityForMassUpdate($entity, $data)) {
|
||||
$entity->set($data);
|
||||
if ($this->checkAssignment($entity)) {
|
||||
if ($repository->save($entity)) {
|
||||
if ($repository->save($entity, ['massUpdate' => true, 'skipStreamNotesAcl' => true])) {
|
||||
$idsUpdated[] = $entity->id;
|
||||
$count++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user