mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix related attached file only for task as in the process
This commit is contained in:
@@ -118,10 +118,11 @@ export class ProcessContentService {
|
||||
/**
|
||||
* Gets related content items for a task instance.
|
||||
* @param taskId ID of the target task
|
||||
* @param opts Options supported by JS-API
|
||||
* @returns Metadata for the content
|
||||
*/
|
||||
getTaskRelatedContent(taskId: string): Observable<any> {
|
||||
return from(this.contentApi.getRelatedContentForTask(taskId))
|
||||
getTaskRelatedContent(taskId: string, opts?: any): Observable<any> {
|
||||
return from(this.contentApi.getRelatedContentForTask(taskId, opts))
|
||||
.pipe(catchError((err) => this.handleError(err)));
|
||||
}
|
||||
|
||||
|
@@ -193,7 +193,7 @@ export class ContentService {
|
||||
if (permission === PermissionsEnum.CONSUMER) {
|
||||
hasPermissions = true;
|
||||
} else if (permission === PermissionsEnum.NOT_CONSUMER) {
|
||||
hasPermissions = false
|
||||
hasPermissions = false;
|
||||
} else if (permission && permission.startsWith('!')) {
|
||||
hasPermissions = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user