Fix bad API behavior

This commit is contained in:
Dane Everitt 2018-02-04 15:38:38 -06:00
parent d4d9eda57a
commit 2ec76d283b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 86 additions and 68 deletions

View file

@ -1,20 +0,0 @@
<?php
namespace Pterodactyl\Http\Requests\Api\Application\Users;
use Pterodactyl\Models\User;
class GetUserRequest extends GetUsersRequest
{
/**
* Determine if the requested user exists on the Panel.
*
* @return bool
*/
public function resourceExists(): bool
{
$user = $this->route()->parameter('user');
return $user instanceof User && $user->exists;
}
}