Role/policy problem.

Author Message

Francis Poézévara

Thursday 23 August 2007 8:10:33 am

Hello,

I have a problem with the definition of roles for my users.

I have a page on my site which lists the content of a folder "Affairs" (we find in this folder 3000 folders "Affair 1", "Affair 2", etc.), with a link to each affair.

Each visitor can see one ore more affairs depending on its role... But I can't set it as I want it to be.

I tried to give to all users the right to "read" the "content" of the "Class folder", and then to "read" the "content" of the "nodes" correspondig to their affairs. The content of the list page should be :
Affaire 1
----------------------
Affaire 2
----------------------
.
But instead of this, I have :
-----------------
---------------------
---------------------
= 3000 lines, without details.
Do you know how I can set the roles up to do what I want please ?

Thanks !!!

Christophe Condomines

Wednesday 29 August 2007 7:00:28 am

> <i>Each visitor can see one ore more affairs depending on its role... But I can't set it as I want it to be.</i>

If I am right, you say that the "Affairs" node are of class type "Folder", and that all these affairs are inside one Folder (I use "main node" for this folder).
If it is this way, and if you have set <i>the right to "read" the "content" of the "Class folder"</i>, it's normal that any user is allowed to see the main node and also all of the affairs!

One simple way for your needs is:
- create a new section and assign this section to the main node
- let any user see only the main node
- and then, add the right to read specifics nodes (for each affair) to each user.
Of course, if you still have a content/read/folder policy, remove it before testing this solution.

Regards.

Microblau SL
http://www.microblau.net

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 18 2025 22:14:35
Script start
Timing: Jan 18 2025 22:14:35
Module start 'layout'
Timing: Jan 18 2025 22:14:35
Module start 'content'
Timing: Jan 18 2025 22:14:36
Module end 'content'
Timing: Jan 18 2025 22:14:36
Script end

Main resources:

Total runtime0.6230 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 588.9219152.6094
Module start 'layout' 0.00940.0050 741.531339.4297
Module start 'content' 0.01440.6072 780.9609525.6953
Module end 'content' 0.62160.0014 1,306.65638.1875
Script end 0.6230  1,314.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.6945160.0003
Check MTime0.00190.2973160.0001
Mysql Total
Database connection0.00100.157610.0010
Mysqli_queries0.556989.3871540.0103
Looping result0.00080.1206520.0000
Template Total0.577292.620.2886
Template load0.00220.353720.0011
Template processing0.575092.284920.2875
Template load and register function0.00020.027410.0002
states
state_id_array0.00150.232910.0015
state_identifier_array0.00320.507220.0016
Override
Cache load0.00190.2979310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.100820.0003
Fetch class attribute name0.00220.361030.0007
XML
Image XML parsing0.00060.094120.0003
class_abstraction
Instantiating content class attribute0.00000.001630.0000
General
dbfile0.00090.1516160.0001
String conversion0.00000.002840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs