diff options
author | robertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-02-04 02:12:14 +0800 |
---|---|---|
committer | robertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-02-04 02:12:14 +0800 |
commit | 6fc1d7d54ff507017ecbfade0a72917775e9f3c0 (patch) | |
tree | 36859b19e44fd59fe578097b949978e07e211f3b | |
parent | 344b95911a3e27ef0851ae3c60a3cf46910f777e (diff) | |
download | pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.tar pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.tar.gz pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.tar.bz2 pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.tar.lz pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.tar.xz pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.tar.zst pttbbs-6fc1d7d54ff507017ecbfade0a72917775e9f3c0.zip |
Quick acl is enabled only if using new ban system.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5555 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/board.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c index ad1e2ace..4838bfe8 100644 --- a/pttbbs/mbbsd/board.c +++ b/pttbbs/mbbsd/board.c @@ -788,6 +788,7 @@ b_config(void) int b_quick_acl(int ent, fileheader_t *fhdr, const char *direct) { +#ifdef USE_NEW_BAN_SYSTEM const boardheader_t *bp = getbcache(currbid); if (!bp) return FULLUPDATE; @@ -811,7 +812,7 @@ b_quick_acl(int ent, fileheader_t *fhdr, const char *direct) } } } -#endif +#endif // STR_SAFEDEL_TITLE if (!uid[0] || !is_validuserid(uid) || !searchuser(uid, uid)) { vmsg("該使用者帳號不存在"); return FULLUPDATE; @@ -820,6 +821,9 @@ b_quick_acl(int ent, fileheader_t *fhdr, const char *direct) edit_user_acl_for_board(uid, bp->brdname); return FULLUPDATE; +#else // !USE_NEW_BAN_SYSTEM + return DONOTHING; +#endif // USE_NEW_BAN_SYSTEM } static int |