[dev] need a hint on sub-permissions in horde 4
Jan Schneider
jan at horde.org
Mon Nov 1 14:03:53 UTC 2010
Zitat von Ralf Lang <lang at b1-systems.de>:
> Hi,
>
> I've been trying to port the patch of
> http://bugs.horde.org/ticket/9350 to H4,
> but failed so far in making the sub-permissions show up in perms
> administration.
>
> I tried (among others, but this one seemed to look most similar to the share
> permissions in turba)
>
>
> $perms = array(
> 'max_blocks' => array(
> 'title' => _("Maximum Number of Portal Blocks"),
> 'type' => 'int'
> ),
> 'administration'=> array(
> 'title' => _("Administration Permissions"),
> 'type' => 'boolean'
> ),
> 'administration:somesubpermission' => array(
> 'title' => _("Permission for XYZ"),
> 'type' => 'boolean'
> ),
> );
> return $perms;
>
> max_blocks shows up, administration shows up.
> administration:somesubpermission
> doesn't show up and administration does not have the symbol for adding sub
> permissions
>
> Maybe I'm missing some obvious point.
You need the 'tree' entry (containing any value) to notify Horde about
additional tree levels, just like in H3. Take a look at Whups' perms()
method.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the dev
mailing list