Setting security on a per directory basis

Author Message

Glenn MacGregor

Tuesday 18 November 2003 5:25:27 am

Hello,

Is it possible to make certain directories/locations require a password login instead of the complete site. I have seen that "requireUserLogin" directive will do this on a site basis but I want to do it on directory basis. Is this possibel through ezPublish 3.2-3?

Thanks

Pål Øystein Carlsen

Wednesday 19 November 2003 12:12:12 am

Yes this is possible. You must create a new section for each directory/folder. Then assign each section to its relevant folder. You can then set different rights for each section, typically restrticting viewing of articles of a given section to a certain user type.

I have done this, and it works perfectly.
Check out this tutorial to get started with users/login if you have not already looked at it: http://ez.no/developer/ez_publish_3/documentation/incoming/tutorial_using_userregister

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 19 2025 01:01:54
Script start
Timing: Jan 19 2025 01:01:54
Module start 'layout'
Timing: Jan 19 2025 01:01:54
Module start 'content'
Timing: Jan 19 2025 01:01:54
Module end 'content'
Timing: Jan 19 2025 01:01:54
Script end

Main resources:

Total runtime0.7221 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.0049 590.4063152.6406
Module start 'layout' 0.00490.0025 743.046939.4766
Module start 'content' 0.00740.7130 782.5234457.5000
Module end 'content' 0.72050.0016 1,240.02348.1250
Script end 0.7220  1,248.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4301160.0002
Check MTime0.00120.1708160.0001
Mysql Total
Database connection0.00060.089910.0006
Mysqli_queries0.686895.1164540.0127
Looping result0.00050.0627520.0000
Template Total0.698396.720.3491
Template load0.00190.265320.0010
Template processing0.696396.433920.3482
Template load and register function0.00030.036010.0003
states
state_id_array0.00080.116610.0008
state_identifier_array0.00080.115620.0004
Override
Cache load0.00150.2106100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.078120.0003
Fetch class attribute name0.00090.130320.0005
XML
Image XML parsing0.00020.029220.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00060.0897100.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0002 secs