summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-07 16:14:21 +0800
committerbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-07 16:14:21 +0800
commit864ec40de97447d03cea3480004033a850162ecb (patch)
tree895a633170e809be34bd0efa8d6e61fb053f2cbc
parentef5d42566f789af3de7dd13567b06210afe74ea7 (diff)
downloadpttbbs-864ec40de97447d03cea3480004033a850162ecb.tar
pttbbs-864ec40de97447d03cea3480004033a850162ecb.tar.gz
pttbbs-864ec40de97447d03cea3480004033a850162ecb.tar.bz2
pttbbs-864ec40de97447d03cea3480004033a850162ecb.tar.lz
pttbbs-864ec40de97447d03cea3480004033a850162ecb.tar.xz
pttbbs-864ec40de97447d03cea3480004033a850162ecb.tar.zst
pttbbs-864ec40de97447d03cea3480004033a850162ecb.zip
do not permit subop to del brd
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@824 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/admin.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/admin.c b/pttbbs/mbbsd/admin.c
index b1d48245..dc792e47 100644
--- a/pttbbs/mbbsd/admin.c
+++ b/pttbbs/mbbsd/admin.c
@@ -1,4 +1,4 @@
-/* $Id: admin.c,v 1.31 2003/01/19 16:06:05 kcwu Exp $ */
+/* $Id: admin.c,v 1.32 2003/05/07 08:14:21 bbs Exp $ */
#include "bbs.h"
/* 使用者管理 */
@@ -223,9 +223,9 @@ m_mod_board(char *bname)
/* Ptt 這邊斷行會檔到下面 */
move(9, 0);
- snprintf(genbuf, sizeof(genbuf), "(E)設定 (V)違法/解除 %s (D)刪除 [Q]取消?",
- HAS_PERM(PERM_SYSOP) ?
- " (B)BVote (S)救回文章 (G)賭盤解卡" : "");
+ snprintf(genbuf, sizeof(genbuf), "(E)設定 (V)違法/解除%s%s [Q]取消?",
+ HAS_PERM(PERM_SYSOP) ? " (B)BVote (S)救回文章 (G)賭盤解卡" : "",
+ HAS_PERM(PERM_SYSSUBOP) ? " (D)刪除" : "");
getdata(10, 0, genbuf, ans, sizeof(ans), LCECHO);
switch (*ans) {
@@ -277,6 +277,8 @@ m_mod_board(char *bname)
}
break;
case 'd':
+ if (HAS_PERM(PERM_SYSSUBOP) && !HAS_PERM(PERM_SYSOP))
+ break;
getdata_str(9, 0, msg_sure_ny, genbuf, 3, LCECHO, "N");
if (genbuf[0] != 'y' || !bname[0])
outs(MSG_DEL_CANCEL);