misc_pterodactyl-panel/app/Http/Requests/Api/Application/ApplicationApiRequest.php

18 lines
394 B
PHP
Raw Normal View History

<?php
2018-01-20 01:58:57 +00:00
namespace Pterodactyl\Http\Requests\Api\Application;
2022-12-15 00:05:46 +00:00
use Pterodactyl\Http\Requests\Api\ApiRequest;
2022-12-15 00:05:46 +00:00
abstract class ApplicationApiRequest extends ApiRequest
{
/**
2022-12-15 00:05:46 +00:00
* This will eventually be replaced with per-request permissions checking
* on the API key and for the user.
*/
public function authorize(): bool
{
2022-12-15 00:05:46 +00:00
return $this->user()->root_admin;
}
}