Merge pull request #16133 from nextcloud/backport/16121/stable16
[stable16] Don't allow to disable encryption via the API
This commit is contained in:
commit
67d645ae7f
|
@ -153,7 +153,7 @@ class AppConfigController extends OCSController {
|
|||
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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue