summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 4806e092..45482889 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -869,8 +869,8 @@ edit_post(int ent, fileheader_t * fhdr, char *direct)
if (!HAS_PERM(PERM_SYSOP) && ((bp->brdattr & BRD_VOTEBOARD) || fhdr->filemode & FILE_VOTE))
return DONOTHING;
- if ((!HAS_PERM(PERM_SYSOP)) &&
- !(currmode & MODE_POST) && strcmp(fhdr->owner, cuser.userid))
+ if( !HAS_PERM(PERM_SYSOP) &&
+ (!(currmode & MODE_POST) || strcmp(fhdr->owner, cuser.userid)) )
return DONOTHING;
if( currmode & MODE_SELECT )