Date: 09/13/00
- Next message: Jens Benecke: "Re: [phplib] Registering form variables"
- Previous message: Jesse Swensen: "Re: [phplib] A different Perm scheme"
- In reply to: Robin Bowes: "RE: [phplib] A different Perm scheme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Somewhere in the documentation it shows you how to set your perms as
follows:
var $permissions = array(
"user" => 1,
"author" => 3,
"editor" => 7,
"supervisor" => 15,
"admin" => 31
);
This allows a 'perm summary' type implementation.
-----Original Message-----
From: Robin Bowes [mailto:robin.bowes <email protected>]
Sent: Wednesday, September 13, 2000 1:43 PM
To: 'Nico Alberti'; phplib <email protected>
Subject: RE: [phplib] A different Perm scheme
> Does anybody know an authorization scheme to make a page with, for
> example
>
> $perm->check("admin", "user")
>
> be accessible with people with admin OR user rights?
Nico,
I believe the following will do what you want:
$perm->check("admin,user")
R.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Jens Benecke: "Re: [phplib] Registering form variables"
- Previous message: Jesse Swensen: "Re: [phplib] A different Perm scheme"
- In reply to: Robin Bowes: "RE: [phplib] A different Perm scheme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

