Questions about roles and policies

Author Message

Gaëlle Barbieri

Wednesday 30 March 2005 6:44:28 am

Hi,

I'm testing EzPublish for an intranet solution.
Roles and policies have a major role for our intranet.

Apparently, EzPublish offers a wide range of possibilities for roles and policies but it's very difficult to understand how it works.

For instance, I'd like to limit access for certain users for some forums.
Imagine I have 3 forums :
- Forum 1
- Forum 2
- Forum 3
And 2 users :
- User 1
- User 2

I want User 1 to get access to all forums but he will only be able to read content, reply and edit the messages he wrote.

I want User 2 to get access to Forum 1 and Forum 2 (and not Forum 3), to read content, reply and edit the messages he wrote on Forum 1 and to be a forum administrator of Forum 3.

Is there anybody who can explain me how should I process to have that ?

Is there a documentation on which all roles & policies are explained ?

Thank you,

Gaëlle

Sebastiaan van der Vliet

Thursday 31 March 2005 12:23:09 am

Hi,

I think your description of roles is not entirely consistent: if User 2 can not access Forum 3, User 2 can not be the forum administrator of Forum 3.

Anyway, you would have to create two new roles:

The first role would be something like:
1.content read No limitations
2.content create Class( Forum reply) , ParentClass( Forum topic , Forum reply )
3.content edit Owner( Self )

The second role would be:
1.content read Subtree( Forum1 ) , Class( Forum, Forum Topic, Forum reply )
2.content read Subtree( Forum2 ) , Class( Forum, Forum Topic, Forum reply )
3.content edit Owner( Self )
4.content create Subtree( Forum2 ) , Class( Forum , Forum topic , Forum reply ) , ParentClass( Forum , Forum topic , Forum reply )

You can add these policies as follows:
[new policy]->select module "content"->[grant access to one function]->select "read","edit" or "create" and select required items.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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 19 2025 00:59:02
Script start
Timing: Jan 19 2025 00:59:02
Module start 'layout'
Timing: Jan 19 2025 00:59:02
Module start 'content'
Timing: Jan 19 2025 00:59:04
Module end 'content'
Timing: Jan 19 2025 00:59:04
Script end

Main resources:

Total runtime1.5843 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.0050 590.3750152.6250
Module start 'layout' 0.00500.0035 743.000039.4453
Module start 'content' 0.00851.5744 782.4453531.8906
Module end 'content' 1.58290.0013 1,314.33598.4688
Script end 1.5842  1,322.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.1985160.0002
Check MTime0.00130.0804160.0001
Mysql Total
Database connection0.00090.055710.0009
Mysqli_queries1.527096.3837540.0283
Looping result0.00060.0366520.0000
Template Total1.546597.620.7733
Template load0.00190.121020.0010
Template processing1.544697.497320.7723
Template load and register function0.00020.010510.0002
states
state_id_array0.00110.068010.0011
state_identifier_array0.00120.074920.0006
Override
Cache load0.00160.1011370.0000
Sytem overhead
Fetch class attribute can translate value0.00050.029320.0002
Fetch class attribute name0.00180.111030.0006
XML
Image XML parsing0.00350.221720.0018
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00430.2703170.0003
String conversion0.00000.000540.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs