diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 2583820cf..af4510f29 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,8 @@ - add: User Defined Fields in Posts Edit Form can now be used as hidden form elements - fix: Collaboration System not deleting getCSMail workflows (perlDreamer Consulting, LLC) + - fix: Calendar event edit should inherit (perlDreamer Consulting, LLC) + http://www.plainblack.com/bugs/tracker/calendar-event-edit-should-inherit 7.3.13 diff --git a/lib/WebGUI/Asset/Event.pm b/lib/WebGUI/Asset/Event.pm index c5f9e2a0e..666471bc3 100644 --- a/lib/WebGUI/Asset/Event.pm +++ b/lib/WebGUI/Asset/Event.pm @@ -154,16 +154,14 @@ sub canAdd { =head2 canEdit -Returns true if a user can edit this asset. +Returns true if a user can edit this asset. This uses the canEditEvent +from the parent Calendar. =cut sub canEdit { my $self = shift; - my $session = $self->session; - - return $session->user->isInGroup($self->getParent->get("groupIdEventEdit")) - or $self->SUPER::canEdit; + return $self->getParent->canAddEvent; }