[horde] Hooks and application permissions

Jan Schneider jan at horde.org
Tue Jun 16 14:42:52 UTC 2009


Zitat von Patrick Boutilier <boutilpj at ednet.ns.ca>:

> Is there a way to set permissions on a Horde app via a hook?
>
>
> Reason I ask is that in Horde 3.1.x we used to have a hook that  
> would disable an application completely based on the result on an  
> SQL query. But in Horde 3.3.x the application only gets disabled  
> during initial login. Afterwards the application is active again.
>
> This is what works in 3.1.x to disable the passwd app.
>
> if(!$passwd) {
>
> $GLOBALS['registry']->applications['passwd']['status']='inactive';
>         }
>

No, there is no such hook. You could try adding the code directly to  
config/registry.php, but I'm not sure if the registry is reloaded  
after logging in.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/horde/attachments/20090616/76ebd58e/attachment.bin>


More information about the horde mailing list