summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-18 12:06:34 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-18 12:06:34 +0800
commitc058431055e9f27e44eb36da8d2805309b633ec1 (patch)
treeb98a2a87b41ec2b03c433c0bca658f4f68ec8eec
parent1ec23af080cec423ced22f77d2fccdb87c8feba9 (diff)
downloadpttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.tar
pttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.tar.gz
pttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.tar.bz2
pttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.tar.lz
pttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.tar.xz
pttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.tar.zst
pttbbs-c058431055e9f27e44eb36da8d2805309b633ec1.zip
fix bug in r2840
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2846 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 8e7895c7..36b9346a 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -780,7 +780,7 @@ haspostperm(const char *bname)
else if (HasUserPerm(PERM_VIOLATELAW))
return 0;
- return HasUserPerm(i & ~PERM_POST);
+ return (i & ~PERM_POST) ? HasUserPerm(i & ~PERM_POST) : 1;
}
void buildBMcache(int bid) /* bid starts from 1 */