summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-25 09:34:27 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-25 09:34:27 +0800
commit1da6e876431475755e1fb84f4920a0cb19134bdb (patch)
tree1f074c794f9823eba6f6de442605a61d847ba466
parent778d4f90aca7e1a98884a1b81f5ac6d7fc067fe4 (diff)
downloadpttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.tar
pttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.tar.gz
pttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.tar.bz2
pttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.tar.lz
pttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.tar.xz
pttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.tar.zst
pttbbs-1da6e876431475755e1fb84f4920a0cb19134bdb.zip
help normal user to query board mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2951 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c8
-rw-r--r--sample/etc/board.help2
2 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 9e57e65f..2528b407 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -2547,8 +2547,6 @@ b_changerecommend(int ent, const fileheader_t * fhdr, const char *direct)
};
boardheader_t *bp=NULL;
int touched = 0, finished = 0;
- if (!((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)))
- return DONOTHING;
bp = getbcache(currbid);
while(!finished) {
@@ -2580,6 +2578,12 @@ b_changerecommend(int ent, const fileheader_t * fhdr, const char *direct)
optCmds[1] = "";
#endif
+ if (!((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)))
+ {
+ vmsg("您對此板無管理權限");
+ return FULLUPDATE;
+ }
+
switch(tolower(getans("請按 h/r%s%s 改變設定,其它鍵結束: ",
optCmds[0], optCmds[1])))
{
diff --git a/sample/etc/board.help b/sample/etc/board.help
index ec282243..eed4f145 100644
--- a/sample/etc/board.help
+++ b/sample/etc/board.help
@@ -11,7 +11,7 @@
(G)/(S) 搜尋 保留標記/標題 (^Q)/(w) 作者資料/丟作者水球
(z)/(TAB)/(b) 閱讀精華區/文摘/進板畫面 (Q)/(^W) 查詢價格或匿名/我在哪裡
(^O)/(X)/(f) 競標/下標/參與賭盤 (^V)/(V)/(R) 活動連署/投票/投票結果
- (d)/(E) 刪文/重編文章
+ (d)/(E) 刪文/重編文章 (I) 查詢看板設定(隱藏,推文,..)
【 板主命令 】
(M/o) 舉行投票/編輯投票名單 (m/c/g/^Z) 保留/選錄精華/文摘/置底