[_appointment setAccessClass:[self accessClass]];
[_appointment setTransparency:[self transparency]];
+#if 0
+ /* bad, bad, bad!
+ * Organizer is no form value, thus we MUST NOT change it
+ */
[_appointment setOrganizer:self->organizer];
+#endif
attendees = [self participants];
lResources = [self resources];
if ([lResources count] > 0) {
/* access */
- (BOOL)isMyApt {
+ if (!self->organizer) return YES; // assume this is safe to do, right?
return [[self->organizer rfc822Email] isEqualToString:[self emailForUser]];
}
[self setContentString:ical];
[self loadValuesFromContentString:ical];
+ if (![self canEditApt]) {
+ /* TODO: we need proper ACLs */
+ return [self redirectToLocation:[self _completeURIForMethod:@"../view"]];
+ }
return self;
}