forked from extern/egroupware
"fixed bug add rights were not enough to create new events"
This commit is contained in:
parent
7f6516d3e3
commit
e1c2f9e639
@ -125,7 +125,8 @@ class bocalupdate extends bocal
|
|||||||
}
|
}
|
||||||
// check if user has the permission to update / create the event
|
// check if user has the permission to update / create the event
|
||||||
if (!$ignore_acl && ($event['id'] && !$this->check_perms(EGW_ACL_EDIT,$event['id']) ||
|
if (!$ignore_acl && ($event['id'] && !$this->check_perms(EGW_ACL_EDIT,$event['id']) ||
|
||||||
!$event['id'] && !$this->check_perms(EGW_ACL_EDIT,0,$event['owner'])))
|
!$event['id'] && !$this->check_perms(EGW_ACL_EDIT,0,$event['owner'])) &&
|
||||||
|
!$this->check_perms(EGW_ACL_ADD,0,$event['owner']))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -682,7 +683,8 @@ class bocalupdate extends bocal
|
|||||||
{
|
{
|
||||||
// check if user has the permission to update / create the event
|
// check if user has the permission to update / create the event
|
||||||
if ($event['id'] && !$this->check_perms(EGW_ACL_EDIT,$event['id']) ||
|
if ($event['id'] && !$this->check_perms(EGW_ACL_EDIT,$event['id']) ||
|
||||||
!$event['id'] && !$this->check_perms(EGW_ACL_EDIT,0,$event['owner']))
|
!$event['id'] && !$this->check_perms(EGW_ACL_EDIT,0,$event['owner']) &&
|
||||||
|
!$this->check_perms(EGW_ACL_ADD,0,$event['owner']))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user