Forums / Setup & design / roles and users

roles and users

Author Message

laurent le cadet

Wednesday 23 July 2003 9:58:09 am

I can't manage to show only one subfolder of a root folder without showing the whole content of this root folder...hum ---> Explanations :
I created a section "extranet" with a folder assign to it and you have to login to read it (extranet ! ;-))

The folder is name "extranet" and it is located at the root of the sitemap.

In this folder I created n subfolders. When the customer login (pointing to the root folder) I just want to show him his (her) folder.

I tryied with the subtree fuction (content read Subtree( customerx ) , Section( Extranet ) but when I login to the root folder (where "customerx" is) I have access denied. It's logical but it don't make my business. :(

I'm not sure it's really clear but what I need is help.

thanx

laurent

Bjørn Kaarstein

Wednesday 23 July 2003 10:53:45 pm

What you need to do is to assign each and every subfolder to it's own section. Then you need to assign a role to the user, that specifies which section(s) he is allowed to read.

Regards Bjørn

laurent le cadet

Wednesday 23 July 2003 11:23:56 pm

Thanks.

But that's what I don't want to do cause at least I need about 100 differents users. That's why I need to group them in a folder wich belong to one section to keep the admin clear.

Is there another way ?

Paul Forsyth

Thursday 24 July 2003 12:06:55 am

Assuming you have this structure:

Root
-----Extranet
---------------Customer Folder 1
---------------Customer Folder 2
---------------Customer Folder 3

and so on.

And for customer 1 you have given them permissions to access their folder, using the subtree, and the main Extranet folder.

If you want to move the user to their area look at this document, for redirecting after login. This tip can be used in your custom login.tpl page (overriding the standard tpl).

http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/redirecting_after_content_publishing

Im not sure about your permissions at the top level... Did you make sure your roles are stored correctly? Does it work for admin?

paul

eZ debug

Timing: Jan 31 2025 01:31:17
Script start
Timing: Jan 31 2025 01:31:17
Module start 'content'
Timing: Jan 31 2025 01:31:17
Module end 'content'
Timing: Jan 31 2025 01:31:17
Script end

Main resources:

Total runtime0.2037 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.0084 587.8203370.3125
Module start 'content' 0.00840.0151 958.13281,005.4844
Module end 'content' 0.02350.1801 1,963.61723,890.4141
Script end 0.2036  5,854.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00482.3692200.0002
Check MTime0.00140.6750200.0001
Mysql Total
Database connection0.00080.372710.0008
Mysqli_queries0.102150.12931410.0007
Looping result0.00160.76981390.0000
Template Total0.179788.210.1797
Template load0.00090.445410.0009
Template processing0.178887.794610.1788
Override
Cache load0.00060.315710.0006
Sytem overhead
Fetch class attribute can translate value0.00180.867510.0018
XML
Image XML parsing0.00030.160010.0003
General
dbfile0.00914.4433200.0005
String conversion0.00000.003430.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