|
注册用户权限相关的一些 hack
|
|
|
|
Author: Autoit | Date:2006-09-25 | View: 10873 | Digg: 58 |
|
/components/com_registration/registration.php 137行: $row->id = 0;
$row->usertype = '';
$row->gid = $acl->get_group_id( 'Registered', 'ARO' ); 改为: $row->id = 0;
$row->usertype = '';
$row->gid = $acl->get_group_id( 'Editor', 'ARO' ); 这样的话, 只要注册成功就是 Editor 的权限了. 改为 Author 就是到 Author 群组了... 如果单纯的让 Registeres 能发文章的话, 可以改: /includes/gacl.class.php 179行[// actions]上面增加: $this->_mos_add_acl( 'action', 'add', 'users', 'registered', 'content', 'own' ); 就可以了, 当然 如果要更改什么权限的话, 基本也都在这个文件里., 照毛画虎就下来了...
Permanent URL: http://www.autoit.cn/index.php/content/view/79/25.html
|