mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
Fix error when selecting multiple users/groups for definition sharing
This commit is contained in:
parent
9e46f70711
commit
9e2e0e878c
@ -892,11 +892,10 @@ class importexport_definitions_ui
|
||||
// ACL
|
||||
$GLOBALS['egw']->acl->delete_repository(self::_appname, 'definition',false);
|
||||
$GLOBALS['egw']->acl->delete_repository(self::_appname, 'share_definition',false);
|
||||
if($content['share_definition'])
|
||||
|
||||
foreach($content['share_definition'] as $group)
|
||||
{
|
||||
$GLOBALS['egw']->acl->add_repository(self::_appname, 'share_definition', $content['share_definition'],
|
||||
EGW_ACL_READ
|
||||
);
|
||||
$GLOBALS['egw']->acl->add_repository(self::_appname, 'share_definition', $group,EGW_ACL_READ);
|
||||
}
|
||||
unset($content['share_definition']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user