Forums / Setup & design / Blocking access to a folder

Blocking access to a folder

Author Message

Tom Erik Thorsen

Thursday 27 January 2005 5:35:54 am

I've read and read and read and read and still have this simple (I believe) problem regarding roles and permissions.

I'd like to:
- Grant access to everything to one user group
- Grant access to everything to another group except one folder

How do I accomplish this in 3.5?

Frederik Holljen

Thursday 27 January 2005 6:00:40 am

You could for example give the special folder a different section. If you do this you can assign the permission with a section limitation for the users in the group with less permissions.

Tom Erik Thorsen

Thursday 27 January 2005 6:03:48 am

I see. Any quick recipe on how to do this? (I'm kinda lost in space, right now...)

Frederik Holljen

Thursday 27 January 2005 6:11:04 am

1. Create the new section from the setup tab (there is an option named sections)
2. Assign the section you just created to your special folder
3. Create two usergroups for your users.
4. Add the users you like into the groups
5. Assign the admin role to the group that should have these permissions (User tab ->Roles and policies)
6. Now actually enter the admin role and select "Assign with limitation" with the dropdown on the left set to section. Select the section you just created, and then select the usergroup with your less privel1. Create the new section from the setup tab (there is an option named sections)

Voila.

Tom Erik Thorsen

Thursday 27 January 2005 6:21:59 am

Well, I can't assign limited access to a section, I'm told by the wizard.

Frederik Holljen

Thursday 27 January 2005 7:05:15 am

True indeed, but you can assign it (the role) with a section limitation (same, but different..)

Tom Erik Thorsen

Thursday 27 January 2005 7:30:29 am

Bah... I don't get this. I'm out.

Thanks anyway.

Sergio Herrera

Thursday 27 January 2005 9:00:53 am

So how do you give anonymous users the access to read the content of folders/articles/etc? recently I tried assigning a section to a folder to use a different template but I run into some access problems that the user had to login before seeing the content. How do I go around that? I want anonymous users to be abel to see this content too.

Marko Žmak

Thursday 27 January 2005 4:17:56 pm

Just one note... Do you want to grant acces to this special folder only, or to the whole subtree of that special folder? Because, I think that if you assign a section to a node the whole subtree of that node enters in that section.

So for granting acces to the special folder only and not the whole subtree, shouldn't the privileges be made for the specific node, and not the section?

Depends on what you want to do.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 18 2025 19:25:02
Script start
Timing: Jan 18 2025 19:25:02
Module start 'content'
Timing: Jan 18 2025 19:25:03
Module end 'content'
Timing: Jan 18 2025 19:25:03
Script end

Main resources:

Total runtime0.9127 sec
Peak memory usage4,096.0000 KB
Database Queries216

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 588.8438180.8359
Module start 'content' 0.00970.7424 769.6797682.5938
Module end 'content' 0.75210.1605 1,452.2734340.4375
Script end 0.9126  1,792.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4750210.0002
Check MTime0.00160.1754210.0001
Mysql Total
Database connection0.00140.156810.0014
Mysqli_queries0.816489.44622160.0038
Looping result0.00270.29302140.0000
Template Total0.866494.920.4332
Template load0.00430.474620.0022
Template processing0.862094.448520.4310
Template load and register function0.00020.019710.0002
states
state_id_array0.00160.176910.0016
state_identifier_array0.00090.096920.0004
Override
Cache load0.00390.4316370.0001
Sytem overhead
Fetch class attribute can translate value0.00210.226650.0004
Fetch class attribute name0.00130.1472110.0001
XML
Image XML parsing0.00240.264750.0005
class_abstraction
Instantiating content class attribute0.00000.0030130.0000
General
dbfile0.00210.2263350.0001
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs