diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-06-09 20:10:26 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-06-10 15:39:04 +0200 |
commit | e991b23d9d74a7d8af9d7f824a5bbeaf1e629604 (patch) | |
tree | d8f8117205a593cf08373da9e9c43083efcaf10f /apps/admin_audit/lib/auditlogger.php | |
parent | 86f12cc3e75e8d08985b7ec7bd2d1a8b91070df1 (diff) | |
download | nextcloud-server-e991b23d9d74a7d8af9d7f824a5bbeaf1e629604.tar.gz nextcloud-server-e991b23d9d74a7d8af9d7f824a5bbeaf1e629604.zip |
log events from versions app
Diffstat (limited to 'apps/admin_audit/lib/auditlogger.php')
-rw-r--r-- | apps/admin_audit/lib/auditlogger.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/auditlogger.php b/apps/admin_audit/lib/auditlogger.php index e3cfd42f5d0..f7dae10701f 100644 --- a/apps/admin_audit/lib/auditlogger.php +++ b/apps/admin_audit/lib/auditlogger.php @@ -30,6 +30,7 @@ use OCA\Admin_Audit\Actions\GroupManagement; use OCA\Admin_Audit\Actions\Sharing; use OCA\Admin_Audit\Actions\Trashbin; use OCA\Admin_Audit\Actions\UserManagement; +use OCA\Admin_Audit\Actions\Versions; use OCP\IGroupManager; use OCP\ILogger; use OCP\IUserSession; @@ -71,6 +72,7 @@ class AuditLogger { $this->authHooks(); $this->fileHooks(); $this->trashbinHooks(); + $this->versionsHooks(); } /** @@ -166,6 +168,12 @@ class AuditLogger { ); } + public function versionsHooks() { + $versionsActions = new Versions($this->logger); + Util::connectHook('\OCP\Versions', 'rollback', $versionsActions, 'rollback'); + Util::connectHook('\OCP\Versions', 'delete',$versionsActions, 'delete'); + } + /** * connect to trash bin hooks */ |