[dev] Patch for Permissions for Application/Menu/Preferences

Marko Djukic mdjukic at horde.org
Mon Oct 20 15:39:10 PDT 2003


Quoting Joel Vandal <jvandal at infoteck.qc.ca>:

> I've found the problem... if I add Jonah permission but not set a default
> permission to SHOW, then I will not be able to add "child permission".

don't see how they are related. setting default permissions has nothing to do
with being able to add a child permission in the code.

> Also, when I try to modify permission, I get these error if I dont set
> permissions for Guest, Event, ... perhap make a check before set value on
> the edit.php ?
>
> Notice: Undefined offset: 0 in /var/www/html/horde/admin/perms/edit.php on
> line 155
>
> Notice: Undefined offset: 0 in /var/www/html/horde/admin/perms/edit.php on
> line 156
>
> Notice: Undefined offset: 0 in /var/www/html/horde/admin/perms/edit.php on
> line 157

again, these should not be occuring. getInfo() will always return a 0 offset in
those three lines because the 0 index is set in the actual html horde_form. so
even if one totally did not rely on horde code and just submitted the form you
would get form data with that 0 index available.

did you do that var_dump of the scalar? what browser you using? only thought
that comes to mind is that there might be something browser-specific that i'm
not seeing on mozilla.

anyone else seeing these? i can't reproduce any of these.

marko


More information about the dev mailing list