refactor: 角色添加是否系统角色字段相关逻辑
This commit is contained in:
@@ -227,6 +227,10 @@ class Role
|
||||
return error('请确认要操作对象是否存在');
|
||||
}
|
||||
|
||||
if (1 == $role->is_system) {
|
||||
return error('该角色禁止删除');
|
||||
}
|
||||
|
||||
if (!$role->delete()) {
|
||||
return error('操作失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user