Can't assign roles and policies to new classes

Author Message

Paul Etienney

Monday 08 September 2008 9:13:57 am

Hello,

My problem is quite simple : I copied the default User group class. I can't assign Role and Policies to this copy ?

Do I have to declare this new class in a config file ? Do you have an idea ?

Thanks !

Edit : I found the line in site.ini I try to use an array.
Edit 2 : I can't use array. Is there a way to have several classes to create users and to assign them role and policies ?

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

André R.

Tuesday 09 September 2008 12:26:12 am

Your looking the wrong place, look in browse.ini, specifically this section:

# Action used when assigning a role to a user or user group
[AssignRole]
StartNode=users
SelectionType=multiple
ReturnType=ObjectID
Class[]
Class[]=user
Class[]=user_group
TopLevelNodes[]
TopLevelNodes[]=users

(Selection type is probably single on your install, you can change it if you like)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Paul Etienney

Tuesday 09 September 2008 1:25:31 am

Hello André,

Thank you very much.

I changed the browse.ini file in the override folder. I cleared my caches. I added classes identifier.
The "SelectionType=multiple"parameter is working but I can't select my news classes. I am limited to user and user_group

Am I forgetting a step ?

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

André R.

Tuesday 09 September 2008 1:57:20 am

You added your class identifier to Class[] ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Paul Etienney

Tuesday 09 September 2008 2:14:47 am

Yes I did.

[AssignRole]
StartNode=users
SelectionType=multiple
ReturnType=ObjectID
Class[]
Class[]=user
Class[]=user_group
Class[]=commercal
Class[]=usergroup
Class[]=apporteur
Class[]=groupement
TopLevelNodes[]
TopLevelNodes[]=users

Is there another place where I have to change something ?

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Paul Etienney

Tuesday 09 September 2008 4:24:52 am

Ok admin you can [Resolved] the thread.

The solution was to modify the browse.ini / AssignRole / Class[] paramaters.

I just did a stupid mistake. Eveyrthing is ok.

Thank you very much.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.