From ca9e8ad9b082a862006d7692a632e0516484b22a Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 14 Nov 2003 10:22:42 +0000 Subject: fix edit_post git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1331 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 45482889..1fe876ea 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -870,7 +870,7 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) return DONOTHING; if( !HAS_PERM(PERM_SYSOP) && - (!(currmode & MODE_POST) || strcmp(fhdr->owner, cuser.userid)) ) + (!(currmode & MODE_POST) || strcmp(fhdr->owner, cuser.userid) != 0) ) return DONOTHING; if( currmode & MODE_SELECT ) -- cgit v1.2.3