Add table to admin/UsersContainer.tsx

This commit is contained in:
Matthew Penner 2021-01-04 11:50:43 -07:00
parent 0ddf806100
commit 95c55e7d28
9 changed files with 223 additions and 22 deletions

View file

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