|
@@ -173,6 +173,7 @@ class Auth extends Controller
|
|
|
public function remove()
|
|
|
{
|
|
|
$this->applyCsrfToken();
|
|
|
+ $log = ['action'=>'权限管理'];
|
|
|
$this->_delete($this->table);
|
|
|
}
|
|
|
|
|
@@ -187,10 +188,8 @@ class Auth extends Controller
|
|
|
if ($result) {
|
|
|
$map = ['auth' => $this->request->post('id')];
|
|
|
Db::name('SystemAuthNode')->where($map)->delete();
|
|
|
- sysoplog('权限管理', '权限删除成功');
|
|
|
$this->success("权限删除成功!", '');
|
|
|
} else {
|
|
|
- sysoplog('权限管理', '权限删除失败');
|
|
|
$this->error("权限删除失败,请稍候再试!");
|
|
|
}
|
|
|
}
|