Get client API tests back into passing order
This commit is contained in:
parent
7169b481b1
commit
cec96062e3
4 changed files with 12 additions and 6 deletions
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue