From ad94c130c0582f1533af1620ce798011f1a19ec6 Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Thu, 14 Dec 2023 07:31:34 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=94=AF=E6=8C=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9D=83=E9=99=90=E4=B8=BA0=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/lexer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/lexer.cpp b/backend/src/lexer.cpp index 3950bc7..ce7021c 100644 --- a/backend/src/lexer.cpp +++ b/backend/src/lexer.cpp @@ -157,8 +157,7 @@ bool CommandUseraddLexer(const std::string &command, std::string &user_id, ss >> password; ss >> privilege; ss >> username; - if (privilege != 0 && privilege != 1 && privilege != 3 && privilege != 7) - return false; + if (privilege != 1 && privilege != 3 && privilege != 7) return false; return true; } else return false;