summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-07 23:00:17 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-07 23:00:17 +0800
commita9e9d8e71053bf943eff2084b21c18a62d94f89c (patch)
treef0c8562b44ad6c6d78384a01501c6b06bfb85f4e /mbbsd/cache.c
parent2409b9e7fc94c497502e83ff07de7142888a3009 (diff)
downloadpttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.tar
pttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.tar.gz
pttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.tar.bz2
pttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.tar.lz
pttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.tar.xz
pttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.tar.zst
pttbbs-a9e9d8e71053bf943eff2084b21c18a62d94f89c.zip
Make BM be able to set whether everyone can post
or only board friend can. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2389 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 5ac60128..1823b370 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -739,6 +739,9 @@ haspostperm(char *bname)
/* 秘密看板特別處理 */
if (bcache[i - 1].brdattr & BRD_HIDE)
return 1;
+ else if (bcache[i - 1].brdattr & BRD_RESTRICTEDPOST &&
+ hbflcheck(i, usernum))
+ return 0;
i = bcache[i - 1].level;