Another restricting access question/solution?...

Author Message

Arran Price

Wednesday 01 December 2004 4:13:58 pm

Hi all,
Ive read numerous posts with people asking how to restrict content access, and would really just like to sense check Im on the right path (and if not have someone point me in the right direction).

In my case, I have an intranet site, with some hundred users and some hundred pieces of content. All the site is accessible to all standard users but there are a few pieces of content that are restricted. The different pieces that are restricted will be restricted to different users/groups. The pieces of content are not all in the same section either - they are spread through the site.

My question is whats the best way of going about implementing this.
My understandings so far:
There is no exclusion list - ie I can't define a section to be the entire site, except a few nodes. I also cant define a role to give acccess to say all the site except a few nodes.
One way of implementing the restrictions is to create a overly complex role, which lists every single part of the intranet except the restricted bits I have. This seems to be to just creating a nightmare for administration.

So from this Im thinking, should I create a new class group, and put some new/copy content classes in it. Then I can create all restricted content from the classes in that new class group. This would mean that I can have everyone being able to read the normal content classes and then implement specific rules for the other content classes.

Does this make sense? Am I over complicating things or missing something out?
feedback appreciated.

cheers

Arran

Arran Price

Monday 06 December 2004 12:00:19 pm

Looks like creating a new class group dosent give a big advantage as its still considered "content", therefore we will create a "restricted folder" class and it list everything but it as readable to standard users.

An exclusion in roles or sections would be really helpful.

Arran

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 22:33:05
Script start
Timing: Jan 18 2025 22:33:05
Module start 'layout'
Timing: Jan 18 2025 22:33:05
Module start 'content'
Timing: Jan 18 2025 22:33:07
Module end 'content'
Timing: Jan 18 2025 22:33:07
Script end

Main resources:

Total runtime1.4341 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1797152.6406
Module start 'layout' 0.00620.0033 741.820339.4766
Module start 'content' 0.00951.4231 781.2969427.9609
Module end 'content' 1.43260.0015 1,209.25788.1250
Script end 1.4341  1,217.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2264160.0002
Check MTime0.00130.0908160.0001
Mysql Total
Database connection0.00120.081410.0012
Mysqli_queries1.389896.9060520.0267
Looping result0.00060.0385500.0000
Template Total1.394497.220.6972
Template load0.00250.171820.0012
Template processing1.391997.054320.6959
Template load and register function0.00020.011110.0002
states
state_id_array0.00130.094010.0013
state_identifier_array0.00200.139820.0010
Override
Cache load0.00210.1469190.0001
Sytem overhead
Fetch class attribute can translate value0.00200.140110.0020
Fetch class attribute name0.00110.073620.0005
XML
Image XML parsing0.00010.004710.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00070.0515100.0001
String conversion0.00000.000640.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs