mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 02:08:11 +00:00
Handle resource limits in the Web interface
See @d7b010
This commit is contained in:
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]];
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user