[phplib] Modifying perm_sel() in perm From: Graeme Merrall (gmerrall <email protected>)
Date: 05/13/00

Hi.
I'm writing a system for user managementusing PHPLib and I've run into a
small prob.
Users of a certain level (operator) can add users while those below
cannot. TThere is another level above operator (superuser).
My problem is that an operator can edit their own account, as well as
another users, and increase their security level to 'superuser' as the
drop box for selecting the user level is built using $perm->perm_sel().
Is there a way to extend the code to only display a drop box using the
current user level and below? My permissions setup is:
var $permissions = array(
  "user" => 1,
  "authority" => 3,
  "helpdesk" => 7,
  "operator" => 15,
  "superuser" => 31
);

I've had a look at the code but the whole bit-shifting thing is a bit of
a blck hole to me.

Cheers,
 Graeme

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>