summaryrefslogtreecommitdiffstats
path: root/mbbsd
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 /mbbsd
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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 6 insertions, 2 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])))
{