[whups] permissions
Jan Schneider
jan at horde.org
Wed May 25 11:27:08 PDT 2005
Zitat von Todd Merritt <tmerritt at email.arizona.edu>:
> I think I didn't explain what I was looking for clearly. In Perms.php,
> it looks like the permissions that can be set are static:
>
> function getPermsArray()
> {
> return array(PERMS_SHOW => _("Show"),
> PERMS_READ => _("Read"),
> PERMS_EDIT => _("Edit"),
> PERMS_DELETE => _("Delete"));
> }
>
> Would it be acceptable to add somthing to the _<app>_perms function to
> return a list of perms that are valid for this object. In the case of
> whups, something like:
>
> $perms['perms_avail']['whups:queues:' . $id] = array(
> PERMS_ASSIGN => _("Assign"));
>
> and have getPermsArray append anything returned by the app to the list ?
You can create any custom permission types. They only need a matching
form field type. See other api.php's for examples.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the whups
mailing list