summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
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
commitac3bef2d03065bfa4352d9297825bbe4cd14e9ea (patch)
tree6bf1aef8ed759b23bc3d14fe5a998b2531f36779 /mbbsd/admin.c
parentf400bfaa42cd66718b9035d658407690b591a338 (diff)
downloadpttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.tar
pttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.tar.gz
pttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.tar.bz2
pttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.tar.lz
pttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.tar.xz
pttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.tar.zst
pttbbs-ac3bef2d03065bfa4352d9297825bbe4cd14e9ea.zip
do not permit subop to del brd
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@824 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index b1d48245..dc792e47 100644
--- a/mbbsd/admin.c
+++ b/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);