Roles & Users, Requiring Login for Client Section

Author Message

Mike Cohen

Friday 28 February 2003 12:51:20 am

I have a client section that I want to restrict access to based on a login. I set up a section, then excluded it from the limitation list for the anonymous user. This removed the link to this section from all site navigation.

I'd like the link to be visible, and when a user clicks on the link, they are presented with a login screen. If they have been assigned a username and password, they get access, otherwise they don't.

Is this possible?

Thank you,

Mike

Volker Lenz

Monday 03 March 2003 3:47:42 am

> I have a client section that I want to restrict access to
> based on a login. I set up a section, then excluded it from
> the limitation list for the anonymous user. This removed the
> link to this section from all site navigation.
>
> I'd like the link to be visible, and when a user clicks on
> the link, they are presented with a login screen. If they
> have been assigned a username and password, they get access,
> otherwise they don't.
>
> Is this possible?
>
> Thank you,
>
> Mike

I recommend to wait with this until ezp3 is available in final release. In current ezp3-rc2, user management is quite fragile (credentials validation is not processed in a robust way, you are logged in without being granted access to sites etc.)

I issued some bug reports & patches to many problems I encountered when trying to accomplish the thing you have in mind.

I finally made a client/public - zone setup work on my local ezp3-rc2 testbox now, but to make it work in sensible & safe way, I had to code stuff for about 10 days. Consider if you want to go this path, too, or if you can afford to postpone the protected zone issue.

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 18 2025 11:15:44
Script start
Timing: Jan 18 2025 11:15:44
Module start 'layout'
Timing: Jan 18 2025 11:15:44
Module start 'content'
Timing: Jan 18 2025 11:15:44
Module end 'content'
Timing: Jan 18 2025 11:15:44
Script end

Main resources:

Total runtime0.6337 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.1641152.6563
Module start 'layout' 0.00750.0042 740.820339.5078
Module start 'content' 0.01170.6206 780.3281494.0547
Module end 'content' 0.63230.0014 1,274.38288.1094
Script end 0.6337  1,282.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5474160.0002
Check MTime0.00130.2044160.0001
Mysql Total
Database connection0.00130.199110.0013
Mysqli_queries0.583492.0665540.0108
Looping result0.00050.0863520.0000
Template Total0.596594.120.2982
Template load0.00190.302220.0010
Template processing0.594693.828020.2973
Template load and register function0.00020.037210.0002
states
state_id_array0.00080.128610.0008
state_identifier_array0.00080.126720.0004
Override
Cache load0.00160.2553280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.098320.0003
Fetch class attribute name0.00120.186430.0004
XML
Image XML parsing0.00080.120520.0004
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00100.1626160.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs