-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dav): Track calendar object changes in admin audit log #44395
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
/** | ||
* @template-extends IEventListener<CalendarObjectCreatedEvent|CalendarObjectUpdatedEvent|CalendarObjectMovedEvent|CalendarObjectDeletedEvent|Event> | ||
*/ | ||
class AdminAuditListener implements IEventListener { |
Check failure
Code scanning / Psalm
InvalidDocblock Error
/** | ||
* @template-extends IEventListener<CalendarObjectCreatedEvent|CalendarObjectUpdatedEvent|CalendarObjectMovedEvent|CalendarObjectDeletedEvent|Event> | ||
*/ | ||
class AdminAuditListener implements IEventListener { |
Check failure
Code scanning / Psalm
MissingTemplateParam Error
'Calendar event %s moved from calendar %s of principal %s updated to calendar %s of principal %s', | ||
[ | ||
$event->getObjectData()['uri'] ?? '?', | ||
$event->getSourceCalendarData()['uri'] ?? '?', |
Check failure
Code scanning / Psalm
UndefinedMethod Error
[ | ||
$event->getObjectData()['uri'] ?? '?', | ||
$event->getSourceCalendarData()['uri'] ?? '?', | ||
$event->getSourceCalendarData()['principaluri'] ?? '?', |
Check failure
Code scanning / Psalm
UndefinedMethod Error
$event->getObjectData()['uri'] ?? '?', | ||
$event->getSourceCalendarData()['uri'] ?? '?', | ||
$event->getSourceCalendarData()['principaluri'] ?? '?', | ||
$event->getTargetCalendarData()['uri'] ?? '?', |
Check failure
Code scanning / Psalm
UndefinedMethod Error
$event->getSourceCalendarData()['uri'] ?? '?', | ||
$event->getSourceCalendarData()['principaluri'] ?? '?', | ||
$event->getTargetCalendarData()['uri'] ?? '?', | ||
$event->getTargetCalendarData()['principaluri'] ?? '?', |
Check failure
Code scanning / Psalm
UndefinedMethod Error
Summary
Makes it possible for admins to keep a log of (critical) changes in user calendars, e.g. if a suspicious activity has happened.
TODO
Checklist