修改角色管理
This commit is contained in:
@@ -97,7 +97,7 @@ class Role extends CatchController
|
||||
}
|
||||
if (!empty($request->param('departments'))) {
|
||||
$role->detachDepartments();
|
||||
$role->attach($request->param('departments'));
|
||||
$role->attachDepartments($request->param('departments'));
|
||||
}
|
||||
return CatchResponse::success();
|
||||
}
|
||||
|
Reference in New Issue
Block a user