Commit e3797c03 authored by hujun's avatar hujun

admin去除权限判断

parent 83bc5cc7
......@@ -131,7 +131,7 @@ class Basic extends Controller
$is_auth = empty($is_auth['id']) ? 0:1;
}
if (empty($is_auth)) {
if (empty($is_auth) && $this->userId != 1) {
if($this->request->isAjax()){
echo json_encode(array( "code" => "300", "msg" => "没有权限!", "data" => [], "type" => "json" ));exit;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment