example policy for restricting content

Author Message

nicholas hemley

Monday 26 November 2007 8:51:12 am

Hello,

I would like to 'lock down' certain folders to groups of users.

Please could someone post an example of the necessary steps to add a policy to a role that would achieve this.

Is it a case of applying a *general* access restriction to 'All' and granting a specific allowance by role to the node?

many thanks for any pointers

Cheerio,
Nic Hemley

nicholas hemley

Tuesday 27 November 2007 3:12:36 am

in answer to my own question, this covers it:

http://ez.no/doc/ez_publish/user_manual/3_9/daily_tasks/creating_a_protected_area

however, it is quite an unintuitive interface

For example, to assign a content node to a section i must go to:

* Setup > Sections

then *click on icon on far right* (which has NO heading and therefore no indication of what it does other than a tool-tip - trying to find this was a nightmare!)

Paul Leclercq

Tuesday 27 November 2007 8:47:45 am

This is really the simplest methods of doing it, since it is native to eZpublish.

You will simply need to identifiy the root of your restricted areas, and apply a section to them.
And then restrict the section to a usergroup for which you can apply the restrictions and policies.

If you whish to create more advanced methodes for your extensions, you can use the roles and policies tab, to restrict the access to some of your functions.
http://ez.no/doc/ez_publish/user_manual/3_9/the_administration_interface/the_user_accounts_tab/roles_and_policies

You will then be able to fetch content for a restricted content, or force your users to connect to access an area of your site.

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 20:50:46
Script start
Timing: Jan 18 2025 20:50:46
Module start 'layout'
Timing: Jan 18 2025 20:50:46
Module start 'content'
Timing: Jan 18 2025 20:50:46
Module end 'content'
Timing: Jan 18 2025 20:50:46
Script end

Main resources:

Total runtime0.7048 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0313152.6406
Module start 'layout' 0.00560.0028 740.671939.4766
Module start 'content' 0.00840.6950 780.1484504.0625
Module end 'content' 0.70330.0015 1,284.210912.1406
Script end 0.7048  1,296.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5046160.0002
Check MTime0.00150.2106160.0001
Mysql Total
Database connection0.00080.109410.0008
Mysqli_queries0.653992.7740570.0115
Looping result0.00090.1278550.0000
Template Total0.671395.220.3357
Template load0.00220.317420.0011
Template processing0.669194.928420.3345
Template load and register function0.00010.017210.0001
states
state_id_array0.00080.113810.0008
state_identifier_array0.00130.187020.0007
Override
Cache load0.00190.2699250.0001
Sytem overhead
Fetch class attribute can translate value0.00080.106420.0004
Fetch class attribute name0.00090.122240.0002
XML
Image XML parsing0.00050.077620.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00190.2663150.0001
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs