summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-30 14:09:06 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-30 14:09:06 +0800
commit3a9767c5d41375747393d16612236c2ec6e4740e (patch)
tree640af20a0f9111ea232f40da20cbca93300f1a62 /mbbsd/cache.c
parent06da6c91162ed86a3d086cf4200688a23215f02e (diff)
downloadpttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.tar
pttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.tar.gz
pttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.tar.bz2
pttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.tar.lz
pttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.tar.xz
pttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.tar.zst
pttbbs-3a9767c5d41375747393d16612236c2ec6e4740e.zip
* add Security and ALLPOST to system internal readonly boards
* previously, ALLPOST was set to reject del_post by attr BRD_VOTEBOARD; however this is confusing to admins. * in order to prevent such potential issue, we'd force it to be readonly in source level. (since it has special meaning in the code) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4716 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 3860dd1f..e56c162a 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -177,6 +177,10 @@ postperm_msg(const char *bname)
if (!(i = getbnum(bname)))
return "看板不存在";
+ // system internal read only boards (no matter what attribute/flag set)
+ if (is_readonly_board(bname))
+ return "看板唯讀";
+
if (HasUserPerm(PERM_SYSOP))
return NULL;