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

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 31 2025 04:18:10
Script start
Timing: Jan 31 2025 04:18:10
Module start 'layout'
Timing: Jan 31 2025 04:18:10
Module start 'content'
Timing: Jan 31 2025 04:18:10
Module end 'content'
Timing: Jan 31 2025 04:18:10
Script end

Main resources:

Total runtime0.0122 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0078151.1953
Module start 'layout' 0.00430.0023 739.203136.6328
Module start 'content' 0.00660.0043 775.835994.1250
Module end 'content' 0.01090.0012 869.960933.9922
Script end 0.0121  903.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002117.2112140.0001
Check MTime0.00108.0957140.0001
Mysql Total
Database connection0.00075.773710.0007
Mysqli_queries0.002116.977830.0007
Looping result0.00000.115710.0000
Template Total0.00086.710.0008
Template load0.00065.222610.0006
Template processing0.00021.480710.0002
Override
Cache load0.00043.636010.0004
General
dbfile0.00108.417380.0001
String conversion0.00000.064740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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