Don't expose Web calendars to other users

Fixes #4331
This commit is contained in:
Francis Lachapelle committed 2018-01-17 14:51:23 -05:00
1 parent 5d3b1b0dc0
commit 4e04d895cd
2 files changed
+3 -1

No files matched your search

@@ -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)