yii-user with rights

Prevent Users From Changing Passwords

Hi

I have a similar issue as @Xav

I have created permissions for User.User., User.Profile. etc in Rights but haven’t assigned them to any User yet.

I’ve added




	/**

	 * @return array action filters

	 */

	public function filters()

	{

		return CMap::mergeArray(parent::filters(),array(

			'rights', // perform access control for CRUD operations

		));

	}



to both UserController and ProfileController.

I was hoping that this would allow me to allow or deny access to index.php/user/profile/changepassword

Is there a way to do this?

Thank in Advance

Russell

Hi,

Suppose i need to assign some other role to new user from controller (like employee or student) except Authenticate or Guest? Then how can i assign that role to user?

Regards,

karmraj.

Hi Did you install the table first for Auth before installation because i try your method not work for me.

Somebody reply to this, i am also stuck on this,

I had drop the whole Auth Table and install it using the book change the configuration but still errors

<br class="Apple-interchange-newline">Error

An error occurred while installing Rights.

Please try again or consult the documentation.

hi,

How to fix about it? I installed yii-user, i want to disable registration. I use this tutorial : http://code.google.com/p/yii-user-management/issues/detail?id=42, but i have this Property "UserModule.disableRegisration" is not defined.

Hello Yii Right Module experts,

In one of yii project installed yii right module and for login there is used a blog_user table,there is another table for students,Now I want to login with students table records but keep the yii right module functionality , How it is possible that both can login blog_user and students?

?php

/**

  • user controller class

  • @author chamara bandara

*/

Yii::import(‘application.extensions.simple_image’);

class UserController extends Controller {

public $layout = ‘//layouts/column2’;

public function filters() {

  return array(


      'accessControl', // perform access control for CRUD operations


          'rights',


  );

}

public function actions() {

  return array(


      'index' =&gt; 'application.modules.users.controllers.user.IndexAction',


      'create' =&gt; 'application.modules.users.controllers.user.CreateAction',


      'view' =&gt; 'application.modules.users.controllers.user.ViewAction',


      'update' =&gt; 'application.modules.users.controllers.user.UpdateAction',


      'delete' =&gt; 'application.modules.users.controllers.user.DeleteAction',


      'admin' =&gt; 'application.modules.users.controllers.user.AdminAction',


      'ajaxChangePassword' =&gt; 'application.modules.users.controllers.user.AjaxChangePasswordAction',


      'UpdatePassword' =&gt; 'application.modules.users.controllers.user.UpdatePasswordAction',


      'approve' =&gt; 'application.modules.users.controllers.user.ApproveAction',


      'reject' =&gt; 'application.modules.users.controllers.user.RejectAction',


  );

}

}

this is my controller with there action,

i am using rights but above actions can’t get to Generate items list

how i do that plz help me?

I have the same problem first. I fixed like this. Edit the main.php as requested. Open schema.mysql.sql and create the mysql tables. Execute the link index.php?r=rights/install will install the rights.

Now it works like a cham !!

can anyone help me in this case