Share » Forums » Developer » Assign roles dynamically on login

Assign roles dynamically on login

Assign roles dynamically on login

Thursday 17 April 2008 1:41:26 am - 1 reply

Author Message

Nicolas Lescure

Thursday 17 April 2008 4:13:51 am

You're right. Move the user in the user group which has the role you need. When you move it, you don't have to publish another version of the user.

Use this :

eZContentObjectTreeNodeOperations::move( $userObject->mainNodeID(), $GroupNodeId )

It should work.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu