{{ 'SEARCH.NO_RESULT' | translate }}
@@ -277,19 +274,6 @@
-
-
-
-
-
-
-
- {{'APP.CUSTOM-PERMISSION-MESSAGE' | translate}}
-
-
-
{{'APP.MEDIUM-TIME-FORMAT' | translate}}
diff --git a/demo-shell/src/app/components/files/files.component.ts b/demo-shell/src/app/components/files/files.component.ts
index 341bf61297..9f876b7317 100644
--- a/demo-shell/src/app/components/files/files.component.ts
+++ b/demo-shell/src/app/components/files/files.component.ts
@@ -237,7 +237,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
stickyHeader: boolean;
warnOnMultipleUploads = false;
thumbnails = false;
- enableCustomPermissionMessage = false;
enableMediumTimeFormat = false;
displayEmptyMetadata = false;
hyperlinkNavigation = false;
@@ -604,10 +603,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
this.infinitePaginationComponent.reset();
}
- canDownloadNode(node: MinimalNodeEntity): boolean {
- return node && node.entry && node.entry.name === 'custom';
- }
-
onBeginUpload(event: UploadFilesEvent) {
if (this.warnOnMultipleUploads && event) {
const files = event.files || [];
diff --git a/e2e/content-services/document-list/document-list-permissions.e2e.ts b/e2e/content-services/document-list/document-list-permissions.e2e.ts
index dffdd453ec..8222ed0cec 100644
--- a/e2e/content-services/document-list/document-list-permissions.e2e.ts
+++ b/e2e/content-services/document-list/document-list-permissions.e2e.ts
@@ -16,7 +16,6 @@
*/
import { browser } from 'protractor';
-import { ContentServicesPage } from '../../core/pages/content-services.page';
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
import { createApiService, BrowserActions, ErrorPage, LoginPage, StringUtil, UsersActions } from '@alfresco/adf-testing';
import { SitesApi } from '@alfresco/js-api';
@@ -24,7 +23,6 @@ import { SitesApi } from '@alfresco/js-api';
describe('Document List Component', () => {
const loginPage = new LoginPage();
- const contentServicesPage = new ContentServicesPage();
const errorPage = new ErrorPage();
const navigationBarPage = new NavigationBarPage();
const apiService = createApiService();
@@ -61,12 +59,5 @@ describe('Document List Component', () => {
await expect(await errorPage.getErrorCode()).toBe('403');
await expect(await errorPage.getErrorDescription()).toBe('You\'re not allowed access to this resource on the server.');
});
-
- it('[C279924] Should display custom message when accessing a file without permissions', async () => {
- await contentServicesPage.goToDocumentList();
- await contentServicesPage.enableCustomPermissionMessage();
- await BrowserActions.getUrl(browser.baseUrl + '/files/' + privateSite.entry.guid);
- await expect(await errorPage.getErrorCode()).toBe('403');
- });
});
});
diff --git a/e2e/core/pages/content-services.page.ts b/e2e/core/pages/content-services.page.ts
index c8b5e6d777..005f52605f 100644
--- a/e2e/core/pages/content-services.page.ts
+++ b/e2e/core/pages/content-services.page.ts
@@ -428,11 +428,6 @@ export class ContentServicesPage {
await BrowserActions.click(infiniteScrollButton);
}
- async enableCustomPermissionMessage(): Promise {
- const customPermissionMessage = element(by.cssContainingText('.mat-slide-toggle-content', 'Enable custom permission message'));
- await BrowserActions.click(customPermissionMessage);
- }
-
async enableMediumTimeFormat(): Promise {
const mediumTimeFormat = $('#enableMediumTimeFormat');
await BrowserActions.click(mediumTimeFormat);