Share » Forums » Developer » Object states

Object states

Object states

Thursday 21 October 2010 4:35:34 am - 4 replies

Modified on Monday 25 October 2010 3:07:09 am by Lars Eirik R

Author Message

Lars Eirik R

Friday 22 October 2010 1:32:13 am

Sorry to stress this, but has anyone really tried out the object states functionality in ez4.4. I am not able to get it to work as expected.

Lars Eirik R

Thursday 16 December 2010 1:33:53 am

Not giving up on this topic guys..

The permission (p1) allows all anonymous users to read all objects, no limitations (referred to from now as p1)

If i create a new permission (p2) which allows only a certcain subtree to be read only if the object state = proofread will p2 be taken into account or will p1 which is effectively more liberal ignore p2 ?

I have created a new section for testing purposes called "Restricted Access" (referred to as r1)

Experiment

If i change so that p1 excludes content in r1 i seem to be able to have p2 honored.

p2 in this case is configured so that all elements within a certain subtree with a section r1 and object_state = proofread can be read by anonymous users.

I have also experienced issues with the fact that the subtree is ignored in the permission listing, but i am not sure if the code actually ignores the subtree limitation. (subtree bug is not a biggy for me, but should be fixed)

Please guys any respons to this problem?

Gaetano Giunta

Thursday 16 December 2010 1:56:22 am

Permissions are only additive in eZ, so if you give one that is more liberal than another, it's the more liberal one that "wins".

Unless there's bugs in the system, of course ;-)

Principal Consultant International Business
Member of the Community Project Board

Lars Eirik R

Thursday 16 December 2010 2:33:45 am

ok, so this basically means that if i create lots of new roles with very strict permissions i have to modify my liberal permission to have them work..

Thanks for quick response.

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

36 542 Users on board!

Forums menu