diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-24 09:40:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-24 09:40:13 +0800 |
commit | 973a97392fd1fedbf1ef5cfb3301b284e9407d26 (patch) | |
tree | fa0397f04e4c4dee3c49895c482dff2f4b0b4121 /mbbsd/board.c | |
parent | f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f (diff) | |
download | pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.tar pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.tar.gz pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.tar.bz2 pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.tar.lz pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.tar.xz pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.tar.zst pttbbs-973a97392fd1fedbf1ef5cfb3301b284e9407d26.zip |
- Police should be able to enter BM boards
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4240 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index b1ad5821..e63ac303 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -158,6 +158,11 @@ HasBoardPerm(boardheader_t *bptr) if (HasUserPerm(PERM_SYSOP)) return 1; + // allow POLICE to enter BM boards + if ((level & PERM_BM) && + (HasUserPerm(PERM_POLICE) || HasUserPerm(PERM_POLICE_MAN))) + return 1; + /* ªO¥D */ if( is_BM_cache(bptr - bcache + 1) ) /* XXXbid */ return 1; |