hi i installed usermanagement module(not user module) and rights module
and user in user management view in rights but i give any permission with user not work
hi i installed usermanagement module(not user module) and rights module
and user in user management view in rights but i give any permission with user not work
read this wiki
http://www.yiiframework.com/wiki/423/installing-yii-users-and-rights-to-newly-created-yii-app/
and
http://www.yiiframework.com/wiki/522/yii-user-and-rights-implementation/
i am newib please help me
<?php
if (Yii::app()->user->isSuperuser) {
$all_roles=new RAuthItemDataProvider('roles', array(
'type'=>2,
));
$data=$all_roles->fetchData();
?>
<div>
<label for="type_id">Type</label>
<?php echo CHtml::dropDownList("Type",'',CHtml::listData($data,'name','name'));?>
</div>
<?php
}
?>
where add?(where add code?)
i installed both when describe permission in Rights and give permission to user of usermanagement
permission do not apply for this user example i give to msm(is a user)create_user permission but msm login with usermanagement modul do not permission create_user
in your controllers
public function filters()
{
return array(
'rights', // perform access control for CRUD operations
);
}
and extend from RController
class ConfigurationsController extends RController
{
Do you use rights and usrmanagement together?
i add it to my code but not working