RE: [phplib] A different Perm scheme From: Rex Byrns (rexb <email protected>)
Date: 09/13/00

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>