diff --git a/src/common/config/public/ClientConfig.ts b/src/common/config/public/ClientConfig.ts index facc64f6..723a097a 100644 --- a/src/common/config/public/ClientConfig.ts +++ b/src/common/config/public/ClientConfig.ts @@ -57,8 +57,8 @@ export class ClientSharingConfig { @SubConfigClass() export class ClientRandomPhotoConfig { - @ConfigProperty() - enabled: boolean = true; + @ConfigProperty({description: 'Enables random link generation. NOTE: With the current implementation, it poses a security risk. See https://github.com/bpatrik/pigallery2/issues/392'}) + enabled: boolean = false; } @SubConfigClass() diff --git a/src/frontend/app/ui/settings/random-photo/random-photo.settings.component.html b/src/frontend/app/ui/settings/random-photo/random-photo.settings.component.html index 3843cc1d..e137c09d 100644 --- a/src/frontend/app/ui/settings/random-photo/random-photo.settings.component.html +++ b/src/frontend/app/ui/settings/random-photo/random-photo.settings.component.html @@ -25,10 +25,17 @@ -