diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-03 00:03:17 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-03 00:03:17 +0800 |
commit | 7f79f7ea6e8da70911b7f456637490beba490fb6 (patch) | |
tree | 3537df51e7180089d0df9cb7b5438568c6204853 | |
parent | 9138b2116ff27c7d0663f76c8cc7219b8c5e74bb (diff) | |
download | pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.tar pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.tar.gz pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.tar.bz2 pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.tar.lz pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.tar.xz pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.tar.zst pttbbs-7f79f7ea6e8da70911b7f456637490beba490fb6.zip |
* fix: cannot del_post / edit_post in digest mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4898 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 7de14f09..52975051 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1431,7 +1431,7 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct) // reason 1: BM may alter post restrictions to this board // reason 2: this account may be occupied by someone else. if (!HasUserPerm(PERM_BASIC) || // including guests - !CheckPostPerm() || + (!CheckPostPerm() && !(currmode & MODE_DIGEST)) || // XXX it's stupid to check digest mode here, but right now CheckPostPerm early returns for digest... NOTE this is buggy but since I don't want to manintain the useless digest... !CheckPostRestriction(currbid) ) return DONOTHING; @@ -2949,7 +2949,7 @@ del_post(int ent, fileheader_t * fhdr, char *direct) // reason 1: BM may alter post restrictions to this board // reason 2: this account may be occupied by someone else. if (!HasUserPerm(PERM_BASIC) || // including guests - !CheckPostPerm() || + (!CheckPostPerm() && !(currmode & MODE_DIGEST)) || // XXX it's stupid to check digest mode here, but right now CheckPostPerm early returns for digest... NOTE this is buggy but since I don't want to manintain the useless digest... !CheckPostRestriction(currbid) ) return DONOTHING; |