搜索找到 6 个匹配
- 2010年 10月 17日 02:15
- 版面: 插件及扩展
- 主题: [插件]仿Verycd.com的随机名言警句
- 回复总数: 8
- 阅读次数: 5605
Re: [插件]仿Verycd.com的随机名言警句
goooooooooood
- 2010年 10月 6日 10:49
- 版面: 模板
- 主题: GZai Theme Typecho 0.8 移植版发布
- 回复总数: 14
- 阅读次数: 7475
Re: GZai Theme Typecho 0.8 移植版发布
goooooood
Re: 如何修改用户权限
上句是测试
这一句应该比较合适
$contents['status'] = ($this->user->pass('contributor', true) || $this->user->pass('editor', true)) ? 'publish' : 'waiting';
这一句应该比较合适
$contents['status'] = ($this->user->pass('contributor', true) || $this->user->pass('editor', true)) ? 'publish' : 'waiting';
Re: 如何修改用户权限
哈哈!搞定了。
修改TypechovarWidgetContentsPostEdit.php第180行
/** 发布内容, 检查是否具有直接发布的权限 */
//$contents['status'] = $this->user->pass('editor', true) ? 'publish' : 'waiting';
$contents['status'] = $this->user->pass('contributor', true) ? 'publish' : 'waiting';
修改TypechovarWidgetContentsPostEdit.php第180行
/** 发布内容, 检查是否具有直接发布的权限 */
//$contents['status'] = $this->user->pass('editor', true) ? 'publish' : 'waiting';
$contents['status'] = $this->user->pass('contributor', true) ? 'publish' : 'waiting';
- 2010年 10月 4日 09:10
- 版面: 模板
- 主题: Indigo Theme for typecho 0.8
- 回复总数: 6
- 阅读次数: 3897