Handle resource limits in the Web interface

See @d7b010
This commit is contained in:
Francis Lachapelle committed 2016-02-16 12:40:59 -05:00
1 parent 3d7192ffef
commit 4c01417690
5 files changed
+73 -31

No files matched your search

@@ -665,7 +665,7 @@
else
{
iCalCalendar *calendar;
NSDictionary *values;
NSDictionary *values, *info;
NSString *reason;
iCalEvent *event;
@@ -682,8 +682,10 @@
reason = [values keysWithFormat: [self labelForKey: @"Maximum number of simultaneous bookings (%{NumberOfSimultaneousBookings}) reached for resource \"%{Cn} %{SystemEmail}\". The conflicting event is \"%{EventTitle}\", and starts on %{StartDate}."]];
info = [NSDictionary dictionaryWithObject: reason forKey: @"reject"];
return [NSException exceptionWithHTTPStatus: 403
reason: reason];
reason: [info jsonRepresentation]];
}
}
//