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:
image: 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
port: 443
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 { Router, UrlTree } from '@angular/router';
import { of as observableOf } from 'rxjs';
import { environment } from '../../../environments/mock-environment';
import { environment } from '../../../environments/environment.test';
describe('EndUserAgreementGuard', () => {
let guard: EndUserAgreementCurrentUserGuard;

View File

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