92701: Disable user agreement feature

This commit is contained in:
Jens Vannerum
2022-06-27 16:24:16 +02:00
parent 900354112a
commit 1b5c801d06
4 changed files with 16 additions and 4 deletions

View File

@@ -246,3 +246,10 @@ bundle:
mediaViewer: mediaViewer:
image: false image: false
video: false video: false
# Whether the end user agreement is required before users use the repository.
# If enabled, the user will be required to accept the agreement before they can use the repository.
# And whether the privacy statement should exist or not.
info:
enableEndUserAgreement: true
enablePrivacyStatement: true

View File

@@ -3,3 +3,7 @@ rest:
host: api7.dspace.org host: api7.dspace.org
port: 443 port: 443
nameSpace: /server nameSpace: /server
info:
enableEndUserAgreement: true
enablePrivacyStatement: true

View File

@@ -2,7 +2,7 @@ import { EndUserAgreementCurrentUserGuard } from './end-user-agreement-current-u
import { EndUserAgreementService } from './end-user-agreement.service'; import { EndUserAgreementService } from './end-user-agreement.service';
import { Router, UrlTree } from '@angular/router'; import { Router, UrlTree } from '@angular/router';
import { of as observableOf } from 'rxjs'; import { of as observableOf } from 'rxjs';
import { environment } from '../../../environments/mock-environment'; import { environment } from '../../../environments/environment.test';
describe('EndUserAgreementGuard', () => { describe('EndUserAgreementGuard', () => {
let guard: EndUserAgreementCurrentUserGuard; let guard: EndUserAgreementCurrentUserGuard;

View File

@@ -16,6 +16,7 @@ import { ThemeConfig } from './theme.model';
import { UIServerConfig } from './ui-server-config.interface'; import { UIServerConfig } from './ui-server-config.interface';
import { BundleConfig } from './bundle-config.interface'; import { BundleConfig } from './bundle-config.interface';
import { ActuatorsConfig } from './actuators.config'; import { ActuatorsConfig } from './actuators.config';
import { InfoConfig } from './info-config.interface';
export class DefaultAppConfig implements AppConfig { export class DefaultAppConfig implements AppConfig {
production = false; production = false;
@@ -324,8 +325,8 @@ export class DefaultAppConfig implements AppConfig {
image: false, image: false,
video: false video: false
}; };
info: { info: InfoConfig = {
enableEndUserAgreement: false, enableEndUserAgreement: true,
enablePrivacyStatement: false enablePrivacyStatement: true
}; };
} }