Get client API tests back into passing order

This commit is contained in:
Dane Everitt 2021-08-07 16:08:29 -07:00
parent 7169b481b1
commit cec96062e3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 12 additions and 6 deletions

View file

@ -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.');
}
}