From e1c2f9e639ec31f1b166b2acceb3ee2a589aa80d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 20 Jan 2007 07:11:06 +0000 Subject: [PATCH] "fixed bug add rights were not enough to create new events" --- calendar/inc/class.bocalupdate.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.bocalupdate.inc.php b/calendar/inc/class.bocalupdate.inc.php index c6cfdc97ab..9cfe0fdcb5 100644 --- a/calendar/inc/class.bocalupdate.inc.php +++ b/calendar/inc/class.bocalupdate.inc.php @@ -125,7 +125,8 @@ class bocalupdate extends bocal } // check if user has the permission to update / create the event 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; } @@ -682,7 +683,8 @@ class bocalupdate extends bocal { // check if user has the permission to update / create the event 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; }