Forums / Developer / Per directory security

Per directory security

Author Message

Glenn MacGregor

Monday 26 April 2004 8:06:59 am

Hi All,

I may be confused here. Is it possible to set security on a single directory within a site. Meaning for most of the site I want people to be able to browse freely. But in the Partners section I want that to be password protected.

I have tried changing the Anonymous Users role but it won't let me "allow limited" when I select 'section'.

Is this possable?

Thanks

Glenn

Tony Wood

Monday 26 April 2004 1:34:23 pm

Hi Glenn,

this is possible via the role system using the subtree method.
Just create a new role say "editor" and add a new rules say content/read. "Then select allow limited" until you see the subtree selection box.
You can also set secuirty on a single node. Its all there, take a look and test it out, it takes a little time to get it right and secure. But you will be ok :)

--tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Glenn MacGregor

Tuesday 27 April 2004 7:00:17 am

Tony,

Thanks for the info. I can't see a way to take access away from a user/role, only give access (read). Is there a way to say no access on a certain section or directory. Maybe I am not understanding you correctly, so maybe an example would work better.

My Site:
Root Folder
-Products
-Services
-About
-Partners

Now I want any person who browses to be able to view all pages in the Products, Services and About folders. But only users who have a login and actually login can view the contents of the Partners folder.

Is it possible to give me an outline of how this would be done?

Thanks a million

Glenn

Glenn MacGregor

Tuesday 27 April 2004 1:44:08 pm

Also where/how do I tell ezp to put up a dialog box to login through on these pages?

And I assume users that browse to my site without logging in are of Anonymous, is this correct?

eZ debug

Timing: Jan 18 2025 18:28:53
Script start
Timing: Jan 18 2025 18:28:53
Module start 'content'
Timing: Jan 18 2025 18:28:53
Module end 'content'
Timing: Jan 18 2025 18:28:53
Script end

Main resources:

Total runtime0.2409 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.0089 587.6875180.8438
Module start 'content' 0.00890.0072 768.531393.8359
Module end 'content' 0.01600.2248 862.3672522.1250
Script end 0.2408  1,384.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00512.1073200.0003
Check MTime0.00170.7219200.0001
Mysql Total
Database connection0.00120.511010.0012
Mysqli_queries0.152763.37191410.0011
Looping result0.00160.65871390.0000
Template Total0.224293.110.2242
Template load0.00080.339610.0008
Template processing0.223492.720110.2234
Override
Cache load0.00060.234410.0006
Sytem overhead
Fetch class attribute can translate value0.00100.435010.0010
XML
Image XML parsing0.00030.106310.0003
General
dbfile0.037215.4561200.0019
String conversion0.00000.002430.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