RE: [PHP] < Levels of Access >

From: Date: Wed, 17 Jan 2001 22:49:43 +0000
Subject: RE: [PHP] < Levels of Access >
Groups: php.general 
Request: Send a blank email to php-general+get-35194@lists.php.net to get a copy of this message
Just a side note: A very nice way to do this is using bitwise operators to store all your access information into one int This is handy for saving space in databases, and bitwise operations should be incredibly fast compared to string comparisons. Cheers, Javier -----Original Message----- From: Ignacio Vazquez-Abrams [mailto:ignacio@openservices.net] Sent: Wednesday, January 17, 2001 2:43 PM To: Abe Cc: php-general@lists.php.net Subject: Re: [PHP] < Levels of Access > On Wed, 17 Jan 2001, Abe wrote: > Hey Guys, > > I wonder if anyone can shed light... > I have a system that internal users access - > > I have separated access levels into 1, 2, 3 etc. So if you have access 1 > you can view certain things - If you are 2 then you can view more or other > things. > > However the problem arises when someone in access level 1 wants to access a > level 2 function. I then manually specify that: > > if (access = 2 or user=joe) { > Allow the functions ... > } > > This can get messy - as individuals will be specified all over the place on > a large system to override levels of access. > > Is there a sensible standard that is used to have levels of access but > special people can access certain higher level functions.? > > I hope that makes sense. > > Thanks > Instead of having individual users specified at certain points, why don't you say that a user has to be a member of a certain group? That way in order to open an access lock for a user, all you have to do is add them to the group. You could even make the security levels groups themselves. -- Ignacio Vazquez-Abrams <ignacio@openservices.net> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#35194) next »