diff options
-rw-r--r-- | include/perm.h | 4 | ||||
-rw-r--r-- | mbbsd/admin.c | 4 | ||||
-rw-r--r-- | mbbsd/menu.c | 3 | ||||
-rw-r--r-- | mbbsd/var.c | 4 | ||||
-rw-r--r-- | util/bbsctl.c | 2 |
5 files changed, 10 insertions, 7 deletions
diff --git a/include/perm.h b/include/perm.h index 166f5bb2..d135ba70 100644 --- a/include/perm.h +++ b/include/perm.h @@ -33,7 +33,7 @@ #define PERM_PRG 000200000000 /* 程式組 */ #define PERM_ACTION 000400000000 /* 活動組 */ #define PERM_PAINT 001000000000 /* 美工組 */ -#define PERM_LAW 002000000000 /* 立法組 */ +#define PERM_POLICE_MAN 002000000000 /* 警察總管 */ #define PERM_SYSSUBOP 004000000000 /* 小組長 */ #define PERM_OLDSYSOP 010000000000 /* 退休站長 */ #define PERM_POLICE 020000000000 /* 警察 */ @@ -41,7 +41,7 @@ #define NUMPERMS 32 #define PERM_DEFAULT (PERM_BASIC | PERM_CHAT | PERM_PAGE ) -#define PERM_MANAGER (PERM_ACCTREG | PERM_ACTION | PERM_PAINT | PERM_LAW) +#define PERM_MANAGER (PERM_ACCTREG | PERM_ACTION | PERM_PAINT) #define PERM_ADMIN (PERM_ACCOUNTS | PERM_SYSOP | PERM_SYSSUBOP | PERM_SYSSUPERSUBOP | PERM_MANAGER | PERM_BM) #define PERM_ALLBOARD (PERM_SYSOP | PERM_BOARD) #define PERM_LOGINCLOAK (PERM_SYSOP | PERM_ACCOUNTS) diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 5b094b59..766ecab0 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -138,7 +138,9 @@ search_key_user(const char *passwdfile, int mode) refresh(); user_display(&user, 1); - uinfo_query(&user, 1, coun); + if (HasUserPerm(PERM_ACCOUNTS)) + uinfo_query(&user, 1, coun); + outs(ANSI_COLOR(44) " 空白鍵" \ ANSI_COLOR(37) ":搜尋下一個 " \ ANSI_COLOR(33)" Q" ANSI_COLOR(37)": 離開"); diff --git a/mbbsd/menu.c b/mbbsd/menu.c index fa111d4f..00e670f4 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -375,7 +375,8 @@ domenu(int cmdmode, const char *cmdtitle, int cmd, const commands_t cmdtable[]) /* administrator's maintain menu */ static const commands_t adminlist[] = { {m_user, PERM_SYSOP, "UUser 使用者資料"}, - {search_user_bypwd, PERM_ACCOUNTS,"SSearch User 特殊搜尋使用者"}, + {search_user_bypwd, PERM_ACCOUNTS|PERM_POLICE_MAN, + "SSearch User 特殊搜尋使用者"}, {search_user_bybakpwd,PERM_ACCOUNTS,"OOld User data 查閱\備份使用者資料"}, {m_board, PERM_SYSOP, "BBoard 設定看板"}, {m_register, PERM_ACCOUNTS|PERM_ACCTREG, diff --git a/mbbsd/var.c b/mbbsd/var.c index 6da13ebe..52864a4f 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -35,7 +35,7 @@ const char * const str_permid[] = { "程式組", /* PERM_PRG */ "活動組", /* PERM_ACTION */ "美工組", /* PERM_PAINT */ - "立法組", /* PERM_LAW */ + "警察總管", /* PERM_POLICE_MAN */ "小組長", /* PERM_SYSSUBOP */ "退休站長", /* PERM_OLDSYSOP */ "警察" /* PERM_POLICE */ @@ -606,7 +606,7 @@ word_t *toplev; #ifndef _BBS_UTIL_C_ /* menu.c */ const commands_t cmdlist[] = { - {admin, PERM_SYSOP|PERM_ACCOUNTS|PERM_BOARD|PERM_VIEWSYSOP|PERM_ACCTREG, + {admin, PERM_SYSOP|PERM_ACCOUNTS|PERM_BOARD|PERM_VIEWSYSOP|PERM_ACCTREG|PERM_POLICE_MAN, "00Admin 【 系統維護區 】"}, {Announce, 0, "AAnnounce 【 精華公佈欄 】"}, #ifdef DEBUG diff --git a/util/bbsctl.c b/util/bbsctl.c index 7710795c..320fa5f0 100644 --- a/util/bbsctl.c +++ b/util/bbsctl.c @@ -225,7 +225,7 @@ int permreport(int argc, char **argv) {PERM_PRG, "PERM_PRG"}, {PERM_ACTION, "PERM_ACTION"}, {PERM_PAINT, "PERM_PAINT"}, - {PERM_LAW, "PERM_LAW"}, + {PERM_POLICE_MAN, "PERM_POLICE_MAN"}, {PERM_MSYSOP, "PERM_MSYSOP"}, {PERM_PTT, "PERM_PTT"}, #endif |