summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/cache.c')
-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 */