Merge pull request #58754 from nextcloud/jospoortvliet-patch-1

Add 'user_migration' to relevant quick presets
This commit is contained in:
Louis 2026-05-07 17:09:02 +02:00 committed by GitHub
commit 92d196d0bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,21 +233,57 @@ class PresetManager {
*/
private function getPresetApps(Preset $preset): array {
return match ($preset) {
Preset::CLUB, Preset::FAMILY, Preset::SCHOOL, Preset::SMALL, Preset::MEDIUM
Preset::CLUB, Preset::FAMILY, Preset::SCHOOL
=> [
'enabled' => ['user_status','guests','twofactor_backupcodes','twofactor_totp','twofactor_webauthn'],
'enabled' => [
'user_status',
'guests',
'twofactor_backupcodes',
'twofactor_totp',
'twofactor_webauthn',
'user_migration',
],
'disabled' => []],
Preset::UNIVERSITY, Preset::LARGE
Preset::SMALL, Preset::MEDIUM
=> [
'enabled' => [
'user_status',
'guests',
'twofactor_backupcodes',
'twofactor_totp',
'twofactor_webauthn',
],
'disabled' => []],
Preset::UNIVERSITY
=> [
'enabled' => [
'user_status',
'guests',
'user_migration',
],
'disabled' => []],
Preset::LARGE
=> [
'enabled' => ['user_status','guests'],
'disabled' => []],
Preset::SHARED
=> [
'enabled' => ['external','twofactor_backupcodes','twofactor_totp','twofactor_webauthn'],
'enabled' => [
'external',
'twofactor_backupcodes',
'twofactor_totp',
'twofactor_webauthn',
'user_migration',
],
'disabled' => ['user_status']],
Preset::PRIVATE
=> [
'enabled' => ['twofactor_backupcodes','twofactor_totp','twofactor_webauthn'],
'enabled' => [
'twofactor_backupcodes',
'twofactor_totp',
'twofactor_webauthn',
'user_migration',
],
'disabled' => []],
default => ['enabled' => [], 'disabled' => []],
};