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.