mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-15 12:53:44 +02:00
Handle allocation assignment using services
Function is significantly quicker and uses 1 SQL query per IP rather than 1 query per port.
This commit is contained in:
@@ -34,7 +34,7 @@ class UserFormRequest extends AdminFormRequest
|
||||
public function rules()
|
||||
{
|
||||
if ($this->method() === 'PATCH') {
|
||||
return User::getUpdateRulesForId($this->user->id);
|
||||
return User::getUpdateRulesForId($this->route()->parameter('user')->id);
|
||||
}
|
||||
|
||||
return User::getCreateRules();
|
||||
|
||||
Reference in New Issue
Block a user