admins and ordinary users

Author Message

Jacek S

Monday 16 October 2006 9:15:18 am

Im curently developing a site with forums, users comments and other user generated contend. I want also to gather some info about user(like their age, where they live and other).
I have two big problem/quiestion:
1. How to distinguish beetween ordinary site user and user with admin/editor rights? Wont it be a security leak if i will use user accounts system build in ez publish? Admins will be a closed group contains a few people, users will be an open group - everyone(who get to this site) will be able to join it.
2. How to gather info about users? I think i have to build a custom class which will contains all data about single user. But how to connect object of that class with users login/password?

Claudia Kosny

Monday 16 October 2006 11:52:16 am

Hello Thorgrim

EZpublish has a pretty good access right system. By default an user cannot do much unless you especially give him more permissions or move him into an group that has more permissions.
You can find information about that here:
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/access_control

Although I think it is more informative to just have a look at the roles that are setup during installation.There you have already an admin with the respective permission set and a set for anonymous users. I think there is also a ready role for editors (this might depend on the package that is installed).

Each user is an object so you can edit the class if you need to store more information. One big minus for EZ is that it is quite complicated to have different user classes. So if you want to automatically give some users admin rights and some not,this will be difficult. Generally though there is only one registration form for all users and the admin has to give an user admin rights manually if required.

Greetings from Luxembourg

Claudia

Xavier Dutoit

Tuesday 17 October 2006 1:27:38 am

And you can add as many fields as you want to the user class (age...) or create a new forum_user with one attribute ezuser.

X+

http://www.sydesy.com

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:37:16
Script start
Timing: Jan 18 2025 22:37:16
Module start 'layout'
Timing: Jan 18 2025 22:37:16
Module start 'content'
Timing: Jan 18 2025 22:37:17
Module end 'content'
Timing: Jan 18 2025 22:37:17
Script end

Main resources:

Total runtime0.8963 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.9063152.6250
Module start 'layout' 0.00760.0031 740.531339.4453
Module start 'content' 0.01070.8841 779.9766564.8828
Module end 'content' 0.89480.0015 1,344.859412.1641
Script end 0.8962  1,357.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4303160.0002
Check MTime0.00130.1473160.0001
Mysql Total
Database connection0.00050.061310.0005
Mysqli_queries0.846994.4956590.0144
Looping result0.00070.0790570.0000
Template Total0.856195.520.4280
Template load0.00230.253320.0011
Template processing0.853895.257520.4269
Template load and register function0.00020.017710.0002
states
state_id_array0.00190.206510.0019
state_identifier_array0.00140.161020.0007
Override
Cache load0.00190.2120200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.065030.0002
Fetch class attribute name0.00090.099440.0002
XML
Image XML parsing0.00060.071430.0002
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00110.1265160.0001
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs