Hi! I have noticed strange thing, when assigning a user to any entity. I'm testing my application with user with team assignment rights. And I get the followind error after clicking Save button.
When application reaches this block
Somehow, the teamIds are not being fetched from the database when the user entity is injected into the Acl of user record service. Any ideas?
HTML Code:
ERROR: Slim Application Error Type: TypeError Code: 0 Message: Espo\Repositories\User::checkBelongsToAnyOfTeams(): Argument #2 ($teamIds) must be of type array, null given, called in /var/www/espocrm/application/Espo/Core/Acl/DefaultAssignmentChecker.php on line 147
PHP Code:
else if ($assignmentPermission === Table::LEVEL_TEAM) {
$teamIdList = $user->get(self::ATTR_TEAMS_IDS);
if (!$this->getUserRepository()->checkBelongsToAnyOfTeams($assignedUserId, $teamIdList)) {
return false;
}
}
Comment