diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 23:35:48 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 23:35:48 +0800 |
commit | f680ef20c2d16966a408c56608b28c1e014c2105 (patch) | |
tree | c2fcf02c6d4cb8147e9ea8f5ed219348b9264970 /mbbsd/cache.c | |
parent | 2320c0c0743af362779009ae09dee8053df9738b (diff) | |
download | pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.gz pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.bz2 pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.lz pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.xz pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.zst pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.zip |
- restrict VIOLATE_LAW cross-posting
- add owner/delete in SAFEDEL title as log
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4118 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r-- | mbbsd/cache.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 0ca1d740..2a046969 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -822,10 +822,14 @@ postperm_msg(const char *bname) !is_hidden_board_friend(i, usernum)) return "看板限制發文"; - if (HasUserPerm(PERM_VIOLATELAW) && (bp->level & PERM_VIOLATELAW)) - return NULL; - else if (HasUserPerm(PERM_VIOLATELAW)) - return "罰單未繳"; + if (HasUserPerm(PERM_VIOLATELAW)) + { + // 在罰單的討論相關板可以發文 + if (bp->level & PERM_VIOLATELAW) + return NULL; + else + return "罰單未繳"; + } if (!(bp->level & ~PERM_POST)) return NULL; |