Sections and privileges

Author Message

Jason Filby

Tuesday 25 November 2003 11:27:42 am

Hi all

What's the best way to only allow a user to see content in a specific section based on user privileges? For example, only Administrator users would be allowed to see content under section 5.

Thanks
Jason

Tore Skobba

Wednesday 26 November 2003 2:29:37 am

Make a role with read access to all content in the specific section, then assign all user groups which should read that content to the role.

Cheers
Tore

Marco Zinn

Wednesday 26 November 2003 3:01:41 pm

Addition to the first post:
When you want to hide content from "common users", especially from anonymous, you probably must change the role "Anonymous".
Our setup:
- public stuff is "section 1". Anonymous can read the used classes (folders, articles, images, files) in section 1, but only in this section
- other, more secret stuff has it's own section and uses corresponding roles, which are assigned to user groups
- admin stuff has its own section, which only the admin role can read/edit.

Marco
http://www.hyperroad-design.com

Jason Filby

Friday 28 November 2003 1:04:01 pm

Thanks for the advice!

Cheers
Jason

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

Main resources:

Total runtime0.0162 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.0047 589.1484152.6250
Module start 'layout' 0.00470.0027 741.773439.4453
Module start 'content' 0.00740.0069 781.218889.3047
Module end 'content' 0.01430.0018 870.523434.3047
Script end 0.0161  904.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.1916140.0002
Check MTime0.00116.5915140.0001
Mysql Total
Database connection0.00074.270610.0007
Mysqli_queries0.002314.266130.0008
Looping result0.00000.086910.0000
Template Total0.00159.310.0015
Template load0.00095.408210.0009
Template processing0.00063.813710.0006
Override
Cache load0.00063.888910.0006
General
dbfile0.002113.243480.0003
String conversion0.00000.042740.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