diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-14 16:54:30 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-14 16:54:30 +0800 |
commit | 86b51c4c9fb6bce0fde83a5f984545645d6c2895 (patch) | |
tree | 4ef19fc27454f7b17f4b589379bf380c053820c8 /mbbsd | |
parent | 1f523eb40440e382d939ae44c4aaacaa15ed62f3 (diff) | |
download | pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.tar pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.tar.gz pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.tar.bz2 pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.tar.lz pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.tar.xz pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.tar.zst pttbbs-86b51c4c9fb6bce0fde83a5f984545645d6c2895.zip |
fix rev 1329 bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1330 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 4 |
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 ) |