mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
92701: Disable user agreement feature
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
@@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user