Forums / Setup & design / Questions about roles and policies

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.

eZ debug

Timing: Jan 31 2025 06:25:54
Script start
Timing: Jan 31 2025 06:25:54
Module start 'content'
Timing: Jan 31 2025 06:25:54
Module end 'content'
Timing: Jan 31 2025 06:25:54
Script end

Main resources:

Total runtime0.1243 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9531180.8281
Module start 'content' 0.00560.0038 768.781393.8828
Module end 'content' 0.00940.1149 862.6641523.8281
Script end 0.1242  1,386.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00322.5866200.0002
Check MTime0.00131.0333200.0001
Mysql Total
Database connection0.00090.759310.0009
Mysqli_queries0.086669.62671410.0006
Looping result0.00100.82831390.0000
Template Total0.114692.210.1146
Template load0.00070.589010.0007
Template processing0.113991.586710.1139
Override
Cache load0.00050.405410.0005
Sytem overhead
Fetch class attribute can translate value0.00060.489810.0006
XML
Image XML parsing0.00020.193110.0002
General
dbfile0.00423.3942200.0002
String conversion0.00000.004230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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