mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 12:59:47 +01:00
use new hook facility to register for group acl
This commit is contained in:
parent
ff7325276e
commit
0e58c00b98
@ -308,4 +308,15 @@ class addressbook_hooks
|
|||||||
'info' => 'addressbook.addressbook_bo.calendar_info',// info method, returns array with id, type & name for a given id
|
'info' => 'addressbook.addressbook_bo.calendar_info',// info method, returns array with id, type & name for a given id
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register addressbook for group-acl
|
||||||
|
*
|
||||||
|
* @param array $args hook-params (not used)
|
||||||
|
* @return boolean|string true=standard group acl link, of string with link
|
||||||
|
*/
|
||||||
|
static function group_acl($args)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@ $setup_info['addressbook']['hooks']['search_link'] = 'addressbook_hooks::search_
|
|||||||
$setup_info['addressbook']['hooks']['calendar_resources'] = 'addressbook_hooks::calendar_resources';
|
$setup_info['addressbook']['hooks']['calendar_resources'] = 'addressbook_hooks::calendar_resources';
|
||||||
$setup_info['addressbook']['hooks']['edit_user'] = 'addressbook_hooks::edit_user';
|
$setup_info['addressbook']['hooks']['edit_user'] = 'addressbook_hooks::edit_user';
|
||||||
$setup_info['addressbook']['hooks'][] = 'config';
|
$setup_info['addressbook']['hooks'][] = 'config';
|
||||||
|
$setup_info['addressbook']['hooks']['group_acl'] = 'addressbook_hooks::group_acl';
|
||||||
|
|
||||||
/* Dependencies for this app to work */
|
/* Dependencies for this app to work */
|
||||||
$setup_info['addressbook']['depends'][] = array(
|
$setup_info['addressbook']['depends'][] = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user