fix: [user:validation] Allow user edition when `username` is not set
parent
80277e4bdf
commit
37094e0abb
|
@ -105,7 +105,7 @@ class UsersTable extends AppTable
|
|||
]
|
||||
])
|
||||
->requirePresence(['username'], 'create')
|
||||
->notEmptyString('username', 'Please fill this field');
|
||||
->notEmptyString('username', __('Please fill this field'), 'create');
|
||||
return $validator;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue