eZ Community » Forums » General » Permissions and Subtrees
expandshrink

Permissions and Subtrees

Permissions and Subtrees

Wednesday 20 June 2012 6:45:32 pm - 5 replies

Hi there.

I need to give some specific permissions to several users.

Let's figure out a simple situation: I have three arguments on my site (arg1, arg2, arg3); I have a user group called "editor" with several users inside.

 

I need that user1 will be able to create/edit/remove contents for arg1 and and arg2, while user2 and user3 will be able to create/edit/remove contents for arg1 and and arg3.

I started creating a role called "role_edit" with permissions to create/remove/edit all classes I need. I did not set any subtree for this step.

Than I assigned this role my 3 users, restricting permissions for each one to its own subtree.

 

And... nothing! The only way to make things works is creating a new role for each subtree and assigning my user to the correct roles... and I have too much cases to manage!

 

I cannot believe that EZPublish is not able to manage a general role, restricting permissions for every users linked to a specific subtree.

Whant about that?
Thanks 

Wednesday 20 June 2012 8:05:23 pm

Hi Simone,

this should work without any problems. I've done it myself numerous times.

What exactly happens?  Any errors in debug output or error/debug logs?

Thursday 21 June 2012 9:21:41 am

That's what happens.

If I do not set any role permission on a subtree, I cannot access to any function on that subtree, even if I set the correct permissions for my users.

 

Example:

I set this rule:

"content    create   Class( Folder , Pagina Standard , File , Image , Allegato , Pagina con miniature )"

and then I set this restriction for my user1:

"user1      Subtree: "News" (/1/2/112/)

 

Now, if I try create something under News, the Create button is not enabled. The only way to make things work is modifying the first rule like that:

"content    create   Subtree(News), Class( Folder , Pagina Standard , File , Image , Allegato , Pagina con miniature )"

but this method forces me to make a new role for each user, instead of having a common role for all my users and tune it up for each one.

Friday 22 June 2012 11:08:01 am

Hi Simone,

What version of eZ Publish are you using? I remember there were issues with Create button and limited role assignments in previous versions of eZ Publish, but not everything works fine. I've just tested it on version 2012.03.

Friday 22 June 2012 11:37:37 am

Mine is 2011.5 Community Project

Monday 25 June 2012 11:41:39 am

Why not do a test upgrade or clean install and see if it fixes your problem?

expandshrink

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

36 542 Users on board!

Forums menu