[phplib] permissions From: Daniel Bondurant (bondu <email protected>)
Date: 05/24/01

I am printing out a list of all the users in the system, and if logged
in user's permission is higher then the user from the db, I want them to
be able to edit the user's info, otherwise they can only view.

How do check the permission of the logged in users versus the permission
in the database.

if ($perm->permissions[$q->f("Perms")]) <
$perm->permissions[$auth->auth["Perm"]] {
        edit
} else {
        view
}

this obviously won't work, but it is basically what i want to do. I
need to use permsum here somewhere, but I am not sure where it fits in.

thanks

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