From: Tim Düsterhus Date: Tue, 23 Feb 2021 13:49:50 +0000 (+0100) Subject: Add permission to access the GDPR export X-Git-Tag: 5.4.0_Alpha_1~234^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e37df7092bf0a66576fd7b134b5ecbddb616048c;p=GitHub%2FWoltLab%2FWCF.git Add permission to access the GDPR export Resolves #3993 --- diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index 79a68163a5..eeb6a39bfe 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -1055,9 +1055,18 @@ webp 1 module_tagging + - diff --git a/wcfsetup/install/files/acp/templates/userList.tpl b/wcfsetup/install/files/acp/templates/userList.tpl index 13b61cd26d..1f92e0ef3b 100644 --- a/wcfsetup/install/files/acp/templates/userList.tpl +++ b/wcfsetup/install/files/acp/templates/userList.tpl @@ -132,7 +132,7 @@ {/if} {/if} - {if $user->editable} + {if $user->accessible && $__wcf->session->getPermission('admin.user.canExportGdprData')}
  • {lang}wcf.acp.user.exportGdpr{/lang}
  • {/if} diff --git a/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php b/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php index 31d08b84e0..3a300ebc91 100644 --- a/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php @@ -100,7 +100,7 @@ class UserExportGdprAction extends AbstractAction /** * @inheritDoc */ - public $neededPermissions = ['admin.user.canEditUser']; + public $neededPermissions = ['admin.user.canExportGdprData']; /** * list of user option names that are excluded from the output, any option that begins with diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 29d5e64681..7810ce023a 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -921,6 +921,8 @@ ACHTUNG: Die oben genannten Meldungen sind stark gekürzt. Sie können Details z + + nicht statt und kann unter Umständen Informationen enthalten, die einem Administrator auf andere Weise nicht zugänglich wären.]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 5f5e01a748..1263759d8c 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -898,6 +898,8 @@ ATTENTION: The messages listed above are greatly shortened. You can view details + + will not be filtered according to the administrator’s permissions and may contain information that would be inaccessible otherwise.]]>