Which is the best Permission Management Extension for YII?

Dear Friends,

I am searching for best Permission Management Extension for YII.

I have successfully installed Srbac and Yii Rights extensions in my local machine copies. But I found login is not required to manage Srbac and YII Rights interfaces. Therefore I have two questions

  1. Which is the best Permission Management Extension for YII?

  2. How can i set login for Srbac or Yii Rights interfaces?

Please help. Thanks In Advance.

Rights denies access from all users but superusers. The installer will grant the superuser role to the user running it. Under Assignments you can add the superuser role to other users as well. I hope this helps.

Thank You.

This my Yii Rights url http://localhost/atportal/index.php/rights/assignment/view and issue is login is not required for adding the roles, assigning the roles etc…

This is my config file.

return array(

'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',


'name'=>'My Web Application',





// preloading 'log' component


'preload'=>array('log'),





// autoloading model and component classes


'import'=>array(


    'application.models.*',


    'application.components.*',


	'application.modules.user.models.*',


    'application.modules.user.components.*',		  


	'application.modules.rights.*', 


	'application.modules.rights.components.*', 


),





'modules'=>array(


	// uncomment the following to enable the Gii tool


	'gii'=>array(


		'class'=>'system.gii.GiiModule',


		'password'=>'temp',


		'ipFilters'=>array('127.0.0.1','::1'),


	),		


	//'admin',


	'rights'=>array( 





		'superuserName'=>'Admin', // Name of the role with super user privileges. 


		'authenticatedName'=>'Authenticated', // Name of the authenticated user role. 


		'userIdColumn'=>'id', // Name of the user id column in the database. 


		'userNameColumn'=>'username', // Name of the user name column in the database. 


		'enableBizRule'=>true, // Whether to enable authorization item business rules. 


		'enableBizRuleData'=>false, // Whether to enable data for business rules. 


		'displayDescription'=>true, // Whether to use item description instead of name. 


		'flashSuccessKey'=>'RightsSuccess', // Key to use for setting success flash messages. 


		'flashErrorKey'=>'RightsError', // Key to use for setting error flash messages. 


		'install'=>true, // Whether to install rights. 


		'baseUrl'=>'/rights', // Base URL for Rights. Change if module is nested. 


		'layout'=>'rights.views.layouts.main', // Layout to use for displaying Rights. 


		'appLayout'=>'application.views.layouts.main', // Application layout. 


		'cssFile'=>'rights.css', // Style sheet file to use for Rights. 


		'install'=>false, // Whether to enable installer. 


		'debug'=>false, // Whether to enable debug mode.				


	),// Add this line only if you wish to use the installer. 


	'user',


),





// application components


'components'=>array(


	'user'=>array(


		// enable cookie-based authentication


		'class'=>'RWebUser',


		//'class'=>'RDbAuthManager',			


		'allowAutoLogin'=>true,


		'loginUrl' => array('/site/login'),	


		'returnUrl'=>array('/site/index'),		


	),


	


	// uncomment the following to enable URLs in path-format	


	'authManager'=>array( 		


		'class'=>'RDbAuthManager', 


		'defaultRoles'=>array('Guest','Authenticated'), 


	),


	


	'urlManager'=>array(


		'urlFormat'=>'path',


		'rules'=>array(


			'<controller:\w+>/<id:\d+>'=>'<controller>/view',


			'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',


			'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',


		),


	),


	


	// uncomment the following to use a MySQL database


	'db'=>array(


		'connectionString' => 'mysql:host=localhost;dbname=test',


		'emulatePrepare' => true,


		'username' => 'root',


		'password' => '',


		'charset' => 'utf8',


		'tablePrefix' => 'tbl_',


	),


	'errorHandler'=>array(


		// use 'site/error' action to display errors


        'errorAction'=>'site/error',


    ),


'log'=>array(


	'class'=>'CLogRouter',


		'routes'=>array(


			array(


				'class'=>'CFileLogRoute',


				'levels'=>'error, warning',


			),


		),


	),		


),

);

Please help.

@mbigul: Please consult the Rights documentation for installation instructions.

There is a direct download link on the extension page.

Chris thank you very much for this useful extension. I have reinstalled Yii Rights, Yii User and now it is working fine.