summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-02 12:56:57 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-02 12:56:57 +0800
commitd6c16a5e66db737d0e7d987aa6837f08070e3fe2 (patch)
treeccc11eb9f7ba21603672e469ea91acb3a21b46bb /mbbsd/announce.c
parenta1c2ca958e43e28a5d9e16ef239d96ad98931e29 (diff)
downloadpttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.tar
pttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.tar.gz
pttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.tar.bz2
pttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.tar.lz
pttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.tar.xz
pttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.tar.zst
pttbbs-d6c16a5e66db737d0e7d987aa6837f08070e3fe2.zip
Fix permissible bug on global announce.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1505 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 7e2a4692..e71e3f89 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -716,7 +716,11 @@ isvisible_man(menu_t * me)
fileheader_t *fhdr = &me->header[me->now - me->page];
if (me->level < MANAGER && ((fhdr->filemode & FILE_BM) ||
((fhdr->filemode & FILE_HIDE) &&
- hbflcheck(currbid, currutmp->uid))))
+ /* board friend only effact when
+ * in board reading mode */
+ (currstat == ANNOUNCE ||
+ hbflcheck(currbid, currutmp->uid))
+ )))
return 0;
return 1;
}