怎么让除了·管理员外的用户发布文章直接发布?
怎么让除了·管理员外的用户发布文章直接发布?
RT,试了试用了个contributor发布文章也是待审核。
Re: 怎么让除了·管理员外的用户发布文章直接发布?
如果想要contributor也能直接发布文章,则要修改框架代码,修改
var/Widget/Contents/Post/Edit.php
里
protected function publish(array $contents)
这个函数中的
if ($this->user->pass('editor', true)) {
中的editor为contributor即可
var/Widget/Contents/Post/Edit.php
里
protected function publish(array $contents)
这个函数中的
if ($this->user->pass('editor', true)) {
中的editor为contributor即可