hook to register an app for group acl

This commit is contained in:
Ralf Becker 2008-06-27 10:03:14 +00:00
parent 21c9e960df
commit ff7325276e

View File

@ -33,7 +33,6 @@
var $bo; var $bo;
var $nextmatchs; var $nextmatchs;
var $apps_with_acl = array( var $apps_with_acl = array(
'addressbook' => True,
'todo' => True, 'todo' => True,
'calendar' => True, 'calendar' => True,
'projects' => True, 'projects' => True,
@ -67,6 +66,10 @@
{ {
unset($this->apps_with_acl['addressbook']); unset($this->apps_with_acl['addressbook']);
} }
foreach($GLOBALS['egw']->hooks->process('group_acl','',true) as $app => $data)
{
if ($data) $this->apps_with_acl[$app] = $data;
}
} }
function row_action($action,$type,$account_id) function row_action($action,$type,$account_id)