作者itoc.bbs@cpu.tfcis.org (核心動力) 看板: itoc
標題Re: [功能] 文章可以讓所有人編輯
時間動力核心 (2007/03/23 Fri 01:02:03)
> Dick 推:若文章為加密,板主標上wiki,大e就能看到內文了0.0+
> Dick 推:若鎖文 標上wiki是否能讓板主群、作者編輯就好
: post.c:post_edit()
hdr = (HDR *) xo_pool + (xo->pos - xo->top);
+#ifdef HAVE_REFUSEMARK
+ if ((hdr->xmode & POST_RESTRICT) && !(bbstate & STAT_BM) &&
+ strcmp(hdr->owner, cuser.userid))
+ return XO_NONE;
+#endif
hdr_fpath(fpath, xo->dir, hdr);
if (HAS_PERM(PERM_ALLBOARD)) /* 站長修改 */
{
-#ifdef HAVE_REFUSEMARK
- if ((hdr->xmode & POST_RESTRICT) && !(bbstate & STAT_BM) &&
- strcmp(hdr->owner, cuser.userid))
- return XO_NONE;
-#endif
vedit(fpath, 0);
}
- else if (cuser.userlevel && !strcmp(hdr->owner, cuser.userid))
+ else if (cuser.userlevel && (!strcmp(hdr->owner, cuser.userid) ||
+ (hdr->xmode & POST_WIKI)))
--
=[﹎:�摃�◣��:﹎ Origin ]|[ ���O���� cpu.tfcis.org ]|[�搟說�﹎:]=
=[﹊:�摃�╱��:﹊ Author ]|[218-168-180-20.dynamic.hin]|[���插�﹊:]=