diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-24 02:03:59 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-24 02:03:59 +0800 |
commit | f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f (patch) | |
tree | 83f18dc2c47f41124173c62b05085fc7afd5af58 /mbbsd/board.c | |
parent | 06a4d437e91b3b0165b6eafbf7eaf736816fc27c (diff) | |
download | pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.tar pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.tar.gz pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.tar.bz2 pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.tar.lz pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.tar.xz pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.tar.zst pttbbs-f5abaaf78f6c5c6e3a4f99ff04835cdd7a06978f.zip |
- fix: guests should not get announce sub-op, and sub-op should not have BM permission.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4239 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index e531a0d6..b1ad5821 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1329,9 +1329,9 @@ show_brdlist(int head, int clsflag, int newflag) static void set_menu_BM(char *BM) { - if (!HasUserPerm(PERM_NOCITIZEN) && (HasUserPerm(PERM_ALLBOARD) || is_BM(BM))) { + if (!HasUserPerm(PERM_NOCITIZEN) && (HasUserPerm(PERM_ALLBOARD) || is_uBM(BM, cuser.userid))) { currmode |= MODE_GROUPOP; - cuser.userlevel |= PERM_SYSSUBOP; + cuser.userlevel |= PERM_SYSSUBOP | PERM_BM; } } |