mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-26 16:26:39 -06:00
Fixed usage of enum where the enum's value should be used
This commit is contained in:
parent
1daad334a5
commit
d3faa22b78
@ -148,7 +148,7 @@ class ApiKey extends AbstractEntity
|
||||
|
||||
if ($this->hasRole($role)) {
|
||||
/** @var ApiKeyRole $apiKeyRole */
|
||||
$apiKeyRole = $this->roles->get($role);
|
||||
$apiKeyRole = $this->roles->get($role->value);
|
||||
$apiKeyRole->updateMeta($meta);
|
||||
} else {
|
||||
$apiKeyRole = new ApiKeyRole($roleDefinition->role, $roleDefinition->meta, $this);
|
||||
|
Loading…
Reference in New Issue
Block a user