summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 13cdd930..64c27f65 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -103,11 +103,15 @@ HasBoardPerm(boardheader_t *bptr)
if (HasUserPerm(PERM_SYSOP))
return 1;
+ /* 十八禁看板 */
+ if( (brdattr & BRD_OVER18) && !over18 )
+ return 0;
+
+ /* 板主 */
if( is_BM_cache(bptr - bcache + 1) ) /* XXXbid */
return 1;
/* 祕密看板:核對首席板主的好友名單 */
-
if (brdattr & BRD_HIDE) { /* 隱藏 */
if (hbflcheck((int)(bptr - bcache) + 1, currutmp->uid)) {
if (brdattr & BRD_POSTMASK)
@@ -117,6 +121,7 @@ HasBoardPerm(boardheader_t *bptr)
} else
return 1;
}
+
/* 限制閱讀權限 */
if (level && !(brdattr & BRD_POSTMASK) && !HasUserPerm(level))
return 0;