mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Fix SQL error preventing multiple users/groups allowed to share their own definitions
This commit is contained in:
parent
a3ad2a0392
commit
89ecce38bf
@ -892,11 +892,10 @@ class importexport_definitions_ui
|
|||||||
// ACL
|
// ACL
|
||||||
$GLOBALS['egw']->acl->delete_repository(self::_appname, 'definition',false);
|
$GLOBALS['egw']->acl->delete_repository(self::_appname, 'definition',false);
|
||||||
$GLOBALS['egw']->acl->delete_repository(self::_appname, 'share_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'],
|
$GLOBALS['egw']->acl->add_repository(self::_appname, 'share_definition', $group,EGW_ACL_READ);
|
||||||
EGW_ACL_READ
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
unset($content['share_definition']);
|
unset($content['share_definition']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user