Skip to content
Snippets Groups Projects
Commit b25ab94a authored by Björn Schießle's avatar Björn Schießle
Browse files

only check for recovery key if someone else than the user wants to change the password

parent 7fc5151d
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ if (is_null($userstatus)) {
OC_JSON::error(array('data' => array('message' => 'Authentication error')));
exit();
}
if (\OCP\App::isEnabled('files_encryption')) {
if (\OCP\App::isEnabled('files_encryption') && $userstatus !== 'user') {
$util = new \OCA\Encryption\Util(new \OC_FilesystemView('/'), $username);
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
$recoveryEnabledForUser = $util->recoveryEnabledForUser();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment