mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 07:13:45 +02:00
api(application): fix api key permissions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user