Fix GDPR export for sessions
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 5 Oct 2020 09:53:24 +0000 (11:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 15 Oct 2020 14:13:52 +0000 (16:13 +0200)
Resolves #3588

wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php

index 5109b508dd4f8e88d5cf4f761762871e7a6dd8e9..2bc791afe0dc995aaf64fadffcda1a1a8a92dc4f 100644 (file)
@@ -276,11 +276,9 @@ class UserExportGdprAction extends AbstractAction {
                        'acpSessionLog' => []
                ];
                
-               // TODO: Fix this.
-               $data['session'] = [];
+               $data['session'] = $this->exportIpAddresses('wcf' . WCF_N . '_user_session', 'ipAddress', 'lastActivityTime', 'userID');
                
-               // TODO: Fix this.
-               $data['acpSession'] = [];
+               $data['acpSession'] = $this->exportIpAddresses('wcf' . WCF_N . '_acp_session', 'ipAddress', 'lastActivityTime', 'userID');
                
                // we can ignore the wcfN_acp_session_access_log table because it is directly related
                // to the wcfN_acp_session_log table and ACP sessions are bound to the ip address