From ccd2ab32d1e192b474ca4ad620dd9292c1ac2648 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 2 Oct 2009 16:03:17 +0000 Subject: * fix: cannot del_post / edit_post in digest mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4898 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 7de14f09..52975051 100644 --- a/mbbsd/bbs.c +++ b/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; -- cgit v1.2.3