mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 08:13:11 +08:00
Enhanced DomainRepositoryTest covering API key permissions
This commit is contained in:
@@ -80,7 +80,7 @@ class ApiKey extends AbstractEntity
|
||||
|
||||
public function spec(bool $inlined = false): Specification
|
||||
{
|
||||
$specs = $this->roles->map(fn (ApiKeyRole $role) => Role::toSpec($role, $inlined));
|
||||
$specs = $this->roles->map(fn (ApiKeyRole $role) => Role::toSpec($role, $inlined))->getValues();
|
||||
return Spec::andX(...$specs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user