mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 12:54:24 -04:00
Merge pull request #16121 from nextcloud/bugfix/noid/dont-allow-to-disable-encryption-via-the-api
Don't allow to disable encryption via the API
This commit is contained in:
commit
01f8fb00bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue