Fix a bug where the calendar will list all events, regardless of permissions.

This commit is contained in:
Colin Kuskie 2009-04-25 00:19:20 +00:00
parent c8fe4092a2
commit 11368a7cbb
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
7.7.5
- Adding StoryManager.
- fixed #10223: Calendar List View Ignores Event Permissions (dhelsten)
7.7.4
- rfe: Extend DateTime for Week-Nrs (#9151)

View file

@ -1210,7 +1210,8 @@ sub viewList {
### Build the event vars
my $dtLast = $dtStart; # The DateTime of the last event
for my $event (@events) {
EVENT: for my $event (@events) {
next EVENT unless $event && $event->canView();
my ( %eventVar, %eventDate )
= $self->getEventVars( $event );