summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-03 00:03:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-03 00:03:17 +0800
commitccd2ab32d1e192b474ca4ad620dd9292c1ac2648 (patch)
treeeba00035901431be4ab5ec73125a56bbf9bc6fad
parentb3c756a689cb39cc7f0d79b2da9876bb33a7062b (diff)
downloadpttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.tar
pttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.tar.gz
pttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.tar.bz2
pttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.tar.lz
pttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.tar.xz
pttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.tar.zst
pttbbs-ccd2ab32d1e192b474ca4ad620dd9292c1ac2648.zip
* 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
-rw-r--r--mbbsd/bbs.c4
1 files changed, 2 insertions, 2 deletions
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;