Don't expose Web calendars to other users

Fixes #4331
This commit is contained in:
Francis Lachapelle
2017-11-16 11:41:36 -05:00
parent 5d3b1b0dc0
commit 4e04d895cd
2 changed files with 3 additions and 1 deletions

View File

@@ -659,7 +659,8 @@ static SoSecurityManager *sm = nil;
for (count = 0; count < max; count++)
{
folder = [folders objectAtIndex: count];
if ([folder folderPropertyValueInCategory: @"WebCalendars"])
if ([folder folderPropertyValueInCategory: @"WebCalendars"
forUser: [SOGoUser userWithLogin: owner]])
{
name = [folder nameInContainer];
if (isWebRequest)