Role subtree limit exception

Author Message

Samuel Sauder

Monday 27 March 2006 7:43:42 am

In trying to configure my roles appropriately, I am running into something that I can't figure out. There are three subtree items /top1/sub1/ and /top1/sub2/ and /top1/sub3/. What I want is that user A has access to all of top1 but not sub3. And user B should have access to top1 with no limitations. I am currently using role limitations to give user A and B access to top1.

Is it possible to do this exclusion? I would prefer not to change my policies (e.g. content|edit...) or make sub3 a section.

Samuel Sauder

Wednesday 12 April 2006 6:06:26 am

So do I take it that I need to make sub3 a section?

Atle Pedersen

Wednesday 12 April 2006 6:43:18 am

Being new to eZ, I've also been trying to figure out alternative methods to using sections for access control.

So far I've found no good solutions. It is possible to limit access to owner instead of sections, but since most nodes are owned by the creator, and ownership is not meant to change (at least that's what the on-line documentation says), this doesn't seem to be a viable solution. But if you want to try to do it this way still, node ownership can easily be modified by manipulating the database. I made it work just by changing ownership in a single table.

So, as far as I know, sections seems to be the only way to do this at the moment. (Or maybe writing your own module to handle it?)

But if anyone else has a possbile solution, I too would be interested in hearing it.

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 31 2025 03:44:29
Script start
Timing: Jan 31 2025 03:44:29
Module start 'layout'
Timing: Jan 31 2025 03:44:29
Module start 'content'
Timing: Jan 31 2025 03:44:29
Module end 'content'
Timing: Jan 31 2025 03:44:29
Script end

Main resources:

Total runtime0.0206 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.1328151.2109
Module start 'layout' 0.00450.0031 739.3438220.6875
Module start 'content' 0.00760.0115 960.0313997.6953
Module end 'content' 0.01910.0015 1,957.726629.9922
Script end 0.0206  1,987.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002512.2987140.0002
Check MTime0.00105.0144140.0001
Mysql Total
Database connection0.00052.402710.0005
Mysqli_queries0.00157.127230.0005
Looping result0.00000.048510.0000
Template Total0.00115.410.0011
Template load0.00094.263610.0009
Template processing0.00021.080110.0002
Override
Cache load0.00062.775810.0006
General
dbfile0.00104.872480.0001
String conversion0.00000.038140.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