Restrict Access Based on Section

Author Message

Willie Seabrook

Sunday 10 August 2003 12:28:13 am

Hi,

Making progress setting up my new ezpublish site.... I've searched the docs and wiki for info on access restriction but can't find what I need.

How do I set up ezpublish so I can assign permissions per section? Ie. I want any users with the role "trader" to be able to access the "trading" section of the website and so on.

How do assign permissions in this sort of way - per section, or a functional equivalent?

Also, when I have new users sign up to my site I want them to be assigned roles based on how much they pay etc... ie my own logic, so how do I access the api's to do this? Do I even need to access the api's?

Kind Regards,
Willie Seabrook

Oliver Dissars

Monday 11 August 2003 12:43:42 am

Hi,

I had / have the same problem.

So far I understood is the basic way the following:

- make in the Setup a section
- assign a node (folder) to these section
- make a role with permissions / limitations
- add users / user group to these role

Voila - now should the access to your sections be limited by these rule set.

My problem is, that I don't manage to generate a proper set of permissions to limit read access for a folder with a login for the defined users.

I read everything about this issue I found and my understanding is, that these permission / login system is part of eZ, but I can't use it.

If you get an hint, let me know.

Best Regards,
Oliver

Willie Seabrook

Monday 11 August 2003 7:05:19 pm

Well want I'm having trouble with the code to verify someone. This is what I need to do in pseudo:

if(user is allowed to see section 8)
do nothing
else
redirect to login page if not logged in
else
display access denied if logged in and no access allowed.

Is this all handled in the index.php anyway? I'm really stuck here and I can't find *any* docs on the subject. Could someone direct us please?

Regards,
Willie

Oliver Dissars

Tuesday 12 August 2003 1:37:28 am

So far I understood should the behaviour you described handled by eZ. I'am wrong?

Regards,
Oliver

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 16:03:12
Script start
Timing: Jan 18 2025 16:03:12
Module start 'layout'
Timing: Jan 18 2025 16:03:12
Module start 'content'
Timing: Jan 18 2025 16:03:13
Module end 'content'
Timing: Jan 18 2025 16:03:13
Script end

Main resources:

Total runtime0.7769 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9375152.6250
Module start 'layout' 0.00630.0027 740.562539.4453
Module start 'content' 0.00900.7667 780.0078484.6484
Module end 'content' 0.77580.0011 1,264.656312.1563
Script end 0.7769  1,276.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4178160.0002
Check MTime0.00130.1613160.0001
Mysql Total
Database connection0.00070.083810.0007
Mysqli_queries0.727993.6964600.0121
Looping result0.00050.0668580.0000
Template Total0.748896.420.3744
Template load0.00230.297120.0012
Template processing0.746596.087920.3732
Template load and register function0.00010.019210.0001
states
state_id_array0.00080.105910.0008
state_identifier_array0.00060.079720.0003
Override
Cache load0.00190.2448390.0000
Sytem overhead
Fetch class attribute can translate value0.00060.073320.0003
Fetch class attribute name0.00100.130840.0003
XML
Image XML parsing0.00030.033520.0001
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00080.1015100.0001
String conversion0.00000.001340.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
4content/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
6content/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: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs