mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
92282: Support restricted thumbnails
This commit is contained in:
8
src/app/shared/testing/authorization-service.stub.ts
Normal file
8
src/app/shared/testing/authorization-service.stub.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
import { FeatureID } from '../../core/data/feature-authorization/feature-id';
|
||||
|
||||
export class AuthorizationDataServiceStub {
|
||||
isAuthorized(featureId?: FeatureID, objectUrl?: string, ePersonUuid?: string): Observable<boolean> {
|
||||
return observableOf(false);
|
||||
}
|
||||
}
|
7
src/app/shared/testing/file-service.stub.ts
Normal file
7
src/app/shared/testing/file-service.stub.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { of as observableOf } from 'rxjs';
|
||||
|
||||
export class FileServiceStub {
|
||||
retrieveFileDownloadLink() {
|
||||
return observableOf(null);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user