summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/admin.c4
-rw-r--r--mbbsd/menu.c3
-rw-r--r--mbbsd/var.c4
3 files changed, 7 insertions, 4 deletions
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