Forums / General / Limiting Roles

Limiting Roles

Author Message

Jim Rea

Tuesday 31 January 2006 11:55:05 pm

I have been experimenting with policies with limited, if any success.

I have a content structure that consists of
Projects
Groups
Articles

Example

Project 1
Group 1
Article 1
Article 2
Article 3
Group 2
Article 1
...
Project N

I have been trying to modify (limit) the Anonymous Role so that it only has rights to read all of the content of Project 1

The policies look like this:

content read Node( Project 1 )
content pdf Section( Standard )
rss feed No limitations
user login SiteAccess( intranet )

When I log in as an anonymous user, I am able to see unrestricted content in all Projects. What am I doing wrong.

For reference - these are all of the permissions for this user

Anonymous content read Node( Project 1 )
Anonymous content pdf Section( Standard )
Anonymous rss feed No limitations
Anonymous user login SiteAccess( intranet )
Forum user content create Class( Forum topic ) , Section( Standard ) , ParentClass( Forum )
Forum user content edit Class( Forum topic ) , Owner( Self ) , Section( Standard )
Forum user content create Class( Forum reply ) , Section( Standard ) , ParentClass( Forum topic )
Forum user content edit Class( Forum reply ) , Owner( Self ) , Section( Standard )
Forum user content versionread Class( Forum topic , Forum reply ) , Section( Standard ) , Owner( Self ) , Status( Draft , Pending )
Forum user user selfedit No limitations
Forum user user password No limitations
Forum user notification use No limitations
Weblog user content create Class( Comment ) , Section( Standard ) , ParentClass( Weblog )
Weblog user content edit Class( Comment ) , Section( Standard )
Weblog user content versionread Class( Comment ) , Section( Standard ) , Owner( Self ) , Status( Draft , Pending )

Thanks for your help.

Thomas Nunninger

Wednesday 01 February 2006 2:51:10 am

I can't see anything wrong on the role settings. (BTW: please use the code-tags if you want to format something like table output - it's easier to read.) Did you try to clear the cache?

What do you say when "I log in as an anonymous user"? You are just "logged in" as anonymous user if you are not logged in...

Thomas

Jim Rea

Wednesday 01 February 2006 8:47:10 am

Thomas,

Thanks for the reply. Pardon the confusion. When I am logged in as a Guest User which includes an anonymous role.

I figured it out

content read Node( Projects , eZ publish ) , Subtree( Project 1 )

eZ debug

Timing: Jan 31 2025 01:27:07
Script start
Timing: Jan 31 2025 01:27:07
Module start 'content'
Timing: Jan 31 2025 01:27:07
Module end 'content'
Timing: Jan 31 2025 01:27:08
Script end

Main resources:

Total runtime0.2430 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 587.7500370.3203
Module start 'content' 0.00850.0155 958.07031,001.4297
Module end 'content' 0.02400.2189 1,959.50003,896.8750
Script end 0.2430  5,856.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00512.0920200.0003
Check MTime0.00150.6203200.0001
Mysql Total
Database connection0.00080.314010.0008
Mysqli_queries0.139457.37261410.0010
Looping result0.00150.60641390.0000
Template Total0.218489.910.2184
Template load0.00090.366610.0009
Template processing0.217589.508010.2175
Override
Cache load0.00060.251410.0006
Sytem overhead
Fetch class attribute can translate value0.00200.815910.0020
XML
Image XML parsing0.00020.085510.0002
General
dbfile0.00753.0919200.0004
String conversion0.00000.002530.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.0002 secs