19 lines
421 B
PHP
19 lines
421 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application;
|
|
|
|
use Pterodactyl\Http\Requests\Api\ApiRequest;
|
|
|
|
abstract class ApplicationApiRequest extends ApiRequest
|
|
{
|
|
/**
|
|
* This will eventually be replaced with per-request permissions checking
|
|
* on the API key and for the user.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user()->root_admin;
|
|
}
|
|
}
|