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.

eZ debug

Timing: Jan 29 2025 23:50:35
Script start
Timing: Jan 29 2025 23:50:35
Module start 'layout'
Timing: Jan 29 2025 23:50:35
Module start 'content'
Timing: Jan 29 2025 23:50:35
Module end 'content'
Timing: Jan 29 2025 23:50:35
Script end

Main resources:

Total runtime0.0149 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0078151.1953
Module start 'layout' 0.00530.0020 739.203136.6094
Module start 'content' 0.00730.0061 775.812594.0313
Module end 'content' 0.01340.0014 869.843837.9766
Script end 0.0148  907.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.7844140.0002
Check MTime0.00107.0415140.0001
Mysql Total
Database connection0.00106.437510.0010
Mysqli_queries0.002114.214330.0007
Looping result0.00000.073710.0000
Template Total0.00117.310.0011
Template load0.00085.477810.0008
Template processing0.00031.781610.0003
Override
Cache load0.00063.864410.0006
General
dbfile0.001912.586580.0002
String conversion0.00000.033640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs