Object states

Author Message

Lars Eirik R

Thursday 21 October 2010 4:35:34 am

Hi. I am working on version 4.4 and need to be able to run this with object states.

I have created a new section and assigned this to a subtree which should only be visible to anonymous users if the state of the objects within this section = Live on website

I have permissions such as these:

content read Subtree( News ) , Class( News_article ) , Section( limited ) ,StateGroup_workflow_states( Live on website )

content read Section( Standard , limited )

My quetion is this: will ez publish honor the the first record here as it is more limiting than record number 2.

I am not able to get this to work even though i have set the permissions and checked to make sure that objects within this subtree only have another state.

Any ideas what could be wrong?

Anyone out there who is actually using object states?

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.

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