summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-18 21:52:05 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-18 21:52:05 +0800
commit38a5a1df585345d5c3fd204214be54aaa7c85be8 (patch)
treed5d9e621714ac267b6cc2da7cbdc0dbf7f1987f3
parent7a30b97ec38e4c6ba35dfac2f4c6f949e8ebf783 (diff)
downloadpttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.tar
pttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.tar.gz
pttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.tar.bz2
pttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.tar.lz
pttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.tar.xz
pttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.tar.zst
pttbbs-38a5a1df585345d5c3fd204214be54aaa7c85be8.zip
make "noselfdelpost" customizable per site
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5127 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c
index f9a34a89..65c54777 100644
--- a/pttbbs/mbbsd/board.c
+++ b/pttbbs/mbbsd/board.c
@@ -776,10 +776,12 @@ b_config(void)
break;
case 'd':
+#ifndef ALLOW_BM_SET_NOSELFDELPOST
if (!(HasUserPerm(PERM_SYSOP) || (HasUserPerm(PERM_SYSSUPERSUBOP) && GROUPOP()) ) ) {
vmsg("此項設定需要群組長或站長權限");
break;
}
+#endif
bp->brdattr ^= BRD_NOSELFDELPOST;
touched = 1;
break;