
PApp::User - manage users, preferences and access rights

use PApp::User;

This module helps administrate users and groups (groups are more commonly called "access rights" within PApp). Wherever a so-called "group" or "access right" is required you can either use a string (group name) or a number (the numerical group id).
Both usernames and group names must be valid XML-Names (this might or might not be enforced).
Return the numerical group id of the given group.
Return true when the user has logged in ("authenticitated herself") using this module
Return true when the user has the specified access right (and is logged in!). This function checks first for the given global access right and then for the app-specific access right of the same name (by prepending <appname>\x00 to the name).
Return all access rights of the logged-in (or specified) user.
Grant the specified access right to the logged-in (or specified) user.
Revoke the specified access right to the logged-in (or specified) user.
Find all users (uid's) with the given access right.

PApp.

Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/