mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 21:33:44 +02:00
Get client API tests back into passing order
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Pterodactyl\Http\Requests\Api\Client;
|
||||
|
||||
use Pterodactyl\Models\Permission;
|
||||
use Illuminate\Auth\Access\AuthorizationException;
|
||||
|
||||
class WebsocketTokenRequest extends ClientApiRequest
|
||||
{
|
||||
@@ -10,4 +11,9 @@ class WebsocketTokenRequest extends ClientApiRequest
|
||||
{
|
||||
return Permission::ACTION_WEBSOCKET_CONNECT;
|
||||
}
|
||||
|
||||
protected function failedAuthorization()
|
||||
{
|
||||
throw new AuthorizationException('You do not have permission to connect to this server\'s websocket.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user