mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
"fixed group invitations got changed to regular invitations, after inviting a second group"
This commit is contained in:
parent
ca6164f5ce
commit
53e7c66f51
@ -5,7 +5,7 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @package calendar
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2004-8 by RalfBecker-At-outdoor-training.de
|
||||
* @copyright (c) 2004-9 by RalfBecker-At-outdoor-training.de
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
@ -892,25 +892,20 @@ class calendar_uiforms extends calendar_ui
|
||||
$sel_options['status']['G'] = lang('Select one');
|
||||
foreach($members as $member)
|
||||
{
|
||||
if (!isset($participants[$member]))
|
||||
{
|
||||
//IF Readaccess you can also invite participants, but you can only change the status, if you have edit rights
|
||||
if ($this->bo->check_perms(EGW_ACL_READ,0,$member) && !$this->bo->check_perms(EGW_ACL_EDIT,0,$member))
|
||||
{
|
||||
$preserv['participants'][$row] = $content['participants'][$row] = array(
|
||||
'app' => 'Group invitation',
|
||||
'uid' => $member,
|
||||
'status' => $status[0],
|
||||
);
|
||||
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] =$readonlys[$row]['status']= true;
|
||||
}
|
||||
elseif ($this->bo->check_perms(EGW_ACL_EDIT,0,$member))
|
||||
if (!isset($participants[$member]) && $this->bo->check_perms(EGW_ACL_READ,0,$member))
|
||||
{
|
||||
$preserv['participants'][$row] = $content['participants'][$row] = array(
|
||||
'app' => 'Group invitation',
|
||||
'uid' => $member,
|
||||
'status' => 'G',
|
||||
);
|
||||
// read access is enought to invite participants, but you edit rights to change status
|
||||
if (!$this->bo->check_perms(EGW_ACL_EDIT,0,$member))
|
||||
{
|
||||
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] =$readonlys[$row]['status']= true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true;
|
||||
}
|
||||
$content['participants'][$row++]['title'] = $GLOBALS['egw']->common->grab_owner_name($member);
|
||||
|
Loading…
Reference in New Issue
Block a user