Tuesday 19 July 2005 2:28:37 am
Hi Werner, by default eZ publish is configured to assign roles only to users (a class with the identifier "user") and to usergroups (a class with the identifier "user_group"). This behavior can be changed or extended by other class identifiers. Take a look into the file /settings/browse.ini. In it you will find a Section called "[AssignRole]", which looks like this:
# Action used when assigning a role to a user or user group
[AssignRole]
StartNode=users
SelectionType=single
ReturnType=ObjectID
Class[]
Class[]=user
Class[]=user_group
TopLevelNodes[]
TopLevelNodes[]=users
This defines that you can choose in browse mode only objects where the class identifier is either "user" or "user_group" and where the objects placed on the TopLevelNode "users". If you want to assign roles to other classes you have to extend this section in browse.ini or an override of it. For example create a file /settings/override/browse.ini.append and write something like this into it:
[AssignRole]
Class[]=my_custom_user
Class[]=an_alternate_user_group
Of course you have to replace "my_custom_user" and "an_alternate_user_group" with the identifiers of the classes you created. If you don't care about assigning roles only to specific classes you can either just delete the "Class[]" entries of section "[AssignRole]" from /settings/browse.ini or add something like this into an e.g. /settings/override/browse.ini:
[AssignRole]
Class[]
Now it is possible to assign roles to any object (folder, images, articles, ...) placed on TopLevelNode "users". But I really <b>don't</b> recommend this! Take the time and configure your system to assign roles only to specific classes (as in my first example).
Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________
|