Implemented mechanism to add/remove roles from API keys

This commit is contained in:
Alejandro Celaya
2021-01-06 10:59:02 +01:00
parent 01b3c504f8
commit 041f231ff2
4 changed files with 82 additions and 5 deletions

View File

@@ -29,6 +29,11 @@ class ApiKeyRole extends AbstractEntity
return $this->meta;
}
public function updateMeta(array $newMeta): void
{
$this->meta = $newMeta;
}
public function apiKey(): ApiKey
{
return $this->apiKey;