api(application): fix api key permissions
This commit is contained in:
parent
7d80b5fee7
commit
264c3865b2
2 changed files with 2 additions and 3 deletions
|
@ -84,7 +84,7 @@ abstract class BaseTransformer extends TransformerAbstract
|
|||
*/
|
||||
protected function authorize(string $resource): bool
|
||||
{
|
||||
if ($this->isRootAdmin()) {
|
||||
if ($this->getKey()->key_type === ApiKey::TYPE_ACCOUNT && $this->isRootAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue