保存员工信息时不再强制要求配置权限,未勾选任何权限时账号会被保存为零权限
This commit is contained in:
@@ -61,8 +61,7 @@ class User extends Controller
|
|||||||
'phone.require' => '手机号码不能为空!',
|
'phone.require' => '手机号码不能为空!',
|
||||||
'phone.mobile' => '手机号码格式错误!',
|
'phone.mobile' => '手机号码格式错误!',
|
||||||
'email.email' => '邮箱地址格式错误!',
|
'email.email' => '邮箱地址格式错误!',
|
||||||
'dept_id.require' => '部门名称不能为空!',
|
'dept_id.require' => '部门名称不能为空!'
|
||||||
'authorize.require' => '未配置权限!'
|
|
||||||
]);
|
]);
|
||||||
if (!empty($data['password'])) {
|
if (!empty($data['password'])) {
|
||||||
if (strlen($data['password']) < 6) {
|
if (strlen($data['password']) < 6) {
|
||||||
|
|||||||
Reference in New Issue
Block a user