470,862 Members | 1,773 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

Access by user in php

Hi!!!!

I started to work with sessions and I have a doubt about users access.
Is there a way to allow a group of users to do something that another
group can't?

I mean, I am giving the chance to interchange customers between branch
managers, but I don't want the the personnel bellow manager can do it.
So if this personnel enter the application made in php, they can see
and do things different that the manager.

If there any article, page or explanation about it, I will appreciate.

Thanks!

Ezequiel

Jan 4 '06 #1
2 1263
zek2005 wrote:
Hi!!!!

I started to work with sessions and I have a doubt about users access.
Is there a way to allow a group of users to do something that another
group can't?

I mean, I am giving the chance to interchange customers between branch
managers, but I don't want the the personnel bellow manager can do it.
So if this personnel enter the application made in php, they can see
and do things different that the manager.

If there any article, page or explanation about it, I will appreciate.


I do that on a number of projects by using the user management class
that I developed: http://sf.net/projects/phpsecurityadm

There isn't any real documentation for using it in the way of tutorials
or anything, but there is a set of example of scripts that make up the
UI for managing the users.

If you want more info or help integrating something like this, just send
me an email for more info.

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Jan 4 '06 #2
zek2005 wrote:
Hi!!!!

I started to work with sessions and I have a doubt about users access.
Is there a way to allow a group of users to do something that another
group can't?

I mean, I am giving the chance to interchange customers between branch
managers, but I don't want the the personnel bellow manager can do it.
So if this personnel enter the application made in php, they can see
and do things different that the manager.

If there any article, page or explanation about it, I will appreciate.


Sorry, don't know :)
The easiest way would be to assign privileges to users. I assume you
store staff records in database so, add something like 'access' field.
Then, perhaps, have access=200 for managers and access=100 for personnel
under them. In the script, before showing an "interchange" page, check
the access of logged user, and if it is below 200, deny access.

--

- lüpher
---------------------------------------------
"Man sieht nur das, was man weiß" (Goethe)
Jan 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

49 posts views Thread by Yannick Turgeon | last post: by
5 posts views Thread by Dave Kolb | last post: by
37 posts views Thread by jasmith | last post: by
6 posts views Thread by cyndithomas via AccessMonster.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.