修改角色管理
This commit is contained in:
parent
f63706eb0a
commit
7e41702de8
@ -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();
|
||||
}
|
||||
|
10
catch/permissions/model/HasPermissionsTrait.php
Normal file
10
catch/permissions/model/HasPermissionsTrait.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* @filename HasPermissionsTrait.php
|
||||
* @createdAt 2020/1/14
|
||||
* @project https://github.com/yanwenwu/catch-admin
|
||||
* @document http://doc.catchadmin.com
|
||||
* @author JaguarJack <njphper@gmail.com>
|
||||
* @copyright By CatchAdmin
|
||||
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user