assignment permission: allow empty for api user, multiple

This commit is contained in:
Yuri Kuznetsov
2020-05-01 15:32:36 +03:00
parent 1bb0035b34
commit e896a7c960
+1 -1
View File
@@ -645,7 +645,7 @@ class Record extends \Espo\Core\Services\Base
if ($toProcess) {
if (empty($userIdList)) {
if ($assignmentPermission == 'no') {
if ($assignmentPermission == 'no' && !$this->getUser()->isApi()) {
return false;
}
return true;