Commit 5e7f039a authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): do a correct check

1 merge request!349Chore refactor permissions export
Pipeline #86340735 running with stages
......@@ -50,7 +50,7 @@ class Manager
throw new \InvalidArgumentException('User does not exist');
}
$entities = $opts['entities'] ?? $this->entitiesBuilder->get(['guids' => $opts['guids']]);
$entities = empty($opts['entities']) ? $this->entitiesBuilder->get(['guids' => $opts['guids']]) : $opts['entities'];
if ($user && $user->getType() !== 'user') {
throw new \InvalidArgumentException('Entity is not a user');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment