[更新]修复删除权限,清理授权节点

This commit is contained in:
邹景立 2017-04-11 12:05:28 +08:00
parent 6864b2d25e
commit 5fb4000cc1
2 changed files with 4 additions and 2 deletions

View File

@ -135,10 +135,11 @@ class Auth extends BasicAdmin {
*/
public function del() {
if (DataService::update($this->table)) {
$id = $this->request->post('id');
Db::name('SystemAuthNode')->where('auth', $id)->delete();
$this->success("权限删除成功!", '');
} else {
$this->error("权限删除失败,请稍候再试!");
}
$this->error("权限删除失败,请稍候再试!");
}
}

View File

@ -67,6 +67,7 @@ class Login extends BasicAdmin {
public function out() {
LogService::write('退出系统', '用户退出系统成功!');
session('user', null);
session_destroy();
$this->success('退出登录成功!', '@admin/login');
}