mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
upload permission (#278)
This commit is contained in:
committed by
Denys Vuika
parent
3065f122f2
commit
7209318bf0
@@ -35,6 +35,7 @@ import {
|
||||
import { BrowsingFilesService } from '../../common/services/browsing-files.service';
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { NodeActionsService } from '../../common/services/node-actions.service';
|
||||
import { NodePermissionService } from '../../common/services/node-permission.service';
|
||||
|
||||
import { PageComponent } from '../page.component';
|
||||
|
||||
@@ -61,6 +62,7 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
||||
private browsingFilesService: BrowsingFilesService,
|
||||
private contentService: ContentService,
|
||||
private apiService: AlfrescoApiService,
|
||||
public permission: NodePermissionService,
|
||||
preferences: UserPreferencesService) {
|
||||
super(preferences);
|
||||
|
||||
@@ -202,14 +204,6 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
canCreateContent(parentNode: MinimalNodeEntryEntity): boolean {
|
||||
if (parentNode) {
|
||||
return this.contentService.hasPermission(parentNode, 'create');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
load(showIndicator: boolean = false, pagination: any = {}) {
|
||||
this.isLoading = showIndicator;
|
||||
|
||||
|
Reference in New Issue
Block a user