Yii Framework Forum: How Work Usermanagement Module With Rights? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How Work Usermanagement Module With Rights?

#1 User is offline   zhtoosi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 30-April 13

Posted 23 July 2013 - 02:03 AM

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
0

#2 User is offline   Rajith R 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 880
  • Joined: 20-April 11
  • Location:India

Posted 23 July 2013 - 02:26 AM

read this wiki

http://www.yiiframew...reated-yii-app/

and

http://www.yiiframew...implementation/
Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
1

#3 User is offline   zhtoosi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 30-April 13

Posted 23 July 2013 - 04:03 AM

View PostRajith R, on 23 July 2013 - 02:26 AM, said:




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?)
0

#4 User is offline   zhtoosi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 30-April 13

Posted 23 July 2013 - 04:12 AM

View Postzhtoosi, on 23 July 2013 - 04:03 AM, said:

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
0

#5 User is offline   Rajith R 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 880
  • Joined: 20-April 11
  • Location:India

Posted 23 July 2013 - 06:29 AM

in your controllers
public function filters()
	{
		return array(
			'rights', // perform access control for CRUD operations
		);
	}


and extend from RController

class ConfigurationsController extends RController
{

Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
1

#6 User is offline   zhtoosi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 30-April 13

Posted 24 July 2013 - 12:00 AM

View PostRajith R, on 23 July 2013 - 06:29 AM, said:

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users