Monotone-Parent: 2657547ae0e611fd831e211fb69fd2bd09cea1e4

Monotone-Revision: 2595a3bc44656d71f249d0059114c0bb7c6ec938

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-16T16:44:29
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-05-16 16:44:29 +00:00
parent d30e350fa8
commit 537ffcd0f9
3 changed files with 12 additions and 16 deletions

View File

@ -75,21 +75,21 @@
to: (NSCalendarDate *) _endDate
{
id calFolder;
SoSecurityManager *sm;
// SoSecurityManager *sm;
NSArray *infos;
calFolder = [container lookupName: @"Calendar" inContext: nil acquire: NO];
sm = [SoSecurityManager sharedSecurityManager];
if (![sm validatePermission: SOGoPerm_FreeBusyLookup
onObject: calFolder
inContext: context])
// sm = [SoSecurityManager sharedSecurityManager];
// if (![sm validatePermission: SOGoPerm_FreeBusyLookup
// onObject: calFolder
// inContext: context])
infos = [calFolder fetchFreeBusyInfosFrom: _startDate
to: _endDate];
else
{
infos = [NSArray new];
[infos autorelease];
}
// else
// {
// infos = [NSArray new];
// [infos autorelease];
// }
return infos;
}

View File

@ -46,11 +46,7 @@
};
SOGoFreeBusyObject = {
superclass = "SOGoContentObject";
protectedBy = "View";
defaultRoles = {
"View" = ( "Authenticated", "FreeBusy" );
"WebDAV Access" = ( "Authenticated", "FreeBusy" );
};
protectedBy = "<public>";
};
};
}

View File

@ -74,7 +74,7 @@
SOGoFreeBusyObject = {
methods = {
ajaxRead = {
protectedBy = "View";
protectedBy = "<public>";
pageName = "SOGoUserHomePage";
actionName = "readFreeBusy";
};