mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-29 16:14:16 +08:00
fix logic issue
This commit is contained in:
@@ -52,7 +52,7 @@ public class TicketQuery extends HttpServlet {
|
||||
try (Session s = SQLCore.sf.openSession()) {
|
||||
|
||||
HttpSession httpSession = request.getSession(false);
|
||||
if (Checker.authorized(httpSession, Command.QUERY)) {
|
||||
if (!Checker.authorized(httpSession, Command.QUERY)) {
|
||||
return new Response(Response.ResponseCode.UNAUTHORIZED);
|
||||
}
|
||||
User u = (User) httpSession.getAttribute("user");
|
||||
|
||||
Reference in New Issue
Block a user