Skip to content
Snippets Groups Projects
Unverified Commit 8c73c1ea authored by Joas Schilling's avatar Joas Schilling
Browse files

Don't allow to disable encryption via the API

parent c63f1d8d
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ class AppConfigController extends OCSController { ...@@ -153,7 +153,7 @@ class AppConfigController extends OCSController {
throw new \InvalidArgumentException('The given key can not be set'); throw new \InvalidArgumentException('The given key can not be set');
} }
if ($app === 'core' && (strpos($key, 'public_') === 0 || strpos($key, 'remote_') === 0)) { if ($app === 'core' && ($key === 'encryption_enabled' || strpos($key, 'public_') === 0 || strpos($key, 'remote_') === 0)) {
throw new \InvalidArgumentException('The given key can not be set'); throw new \InvalidArgumentException('The given key can not be set');
} }
} }
......
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