mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:39 +01:00
fixed handling of group acl: addressbook eg. is NOT using it at all
This commit is contained in:
parent
d9117ecff0
commit
1d57b61644
@ -5,7 +5,7 @@
|
|||||||
* @link http://www.egroupware.org
|
* @link http://www.egroupware.org
|
||||||
* @package addressbook
|
* @package addressbook
|
||||||
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
||||||
* @copyright (c) 2006-9 by Ralf Becker <RalfBecker@outdoor-training.de>
|
* @copyright (c) 2006-10 by Ralf Becker <RalfBecker@outdoor-training.de>
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
@ -365,4 +365,15 @@ class addressbook_hooks
|
|||||||
// addressbook uses group-acl, only if contacts-backend is NOT LDAP, as the ACL can not be modified there
|
// addressbook uses group-acl, only if contacts-backend is NOT LDAP, as the ACL can not be modified there
|
||||||
return $GLOBALS['egw_info']['server']['contact_repository'] != 'ldap';
|
return $GLOBALS['egw_info']['server']['contact_repository'] != 'ldap';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For which groups should no group acl be used: addressbook always
|
||||||
|
*
|
||||||
|
* @param string|array $data
|
||||||
|
* @return boolean|array true, false or array with group-account_id's
|
||||||
|
*/
|
||||||
|
static function not_enum_group_acls($data)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,7 @@ $setup_info['addressbook']['hooks']['calendar_resources'] = 'addressbook_hooks::
|
|||||||
$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';
|
$setup_info['addressbook']['hooks']['group_acl'] = 'addressbook_hooks::group_acl';
|
||||||
|
$setup_info['addressbook']['hooks']['not_enum_group_acls'] = 'addressbook_hooks::not_enum_group_acls';
|
||||||
|
|
||||||
/* 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