mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2196] fixed error message for no permission on copy and move (#2863)
* [ADF-2196] fixed error message for no permission on copy and move * [ADF-2196] removed fdescribe
This commit is contained in:
@@ -95,7 +95,7 @@ describe('ContentNodeDialogService', () => {
|
|||||||
() => { },
|
() => { },
|
||||||
(error) => {
|
(error) => {
|
||||||
expect(materialDialog.open).not.toHaveBeenCalled();
|
expect(materialDialog.open).not.toHaveBeenCalled();
|
||||||
expect(error.statusCode).toBe(403);
|
expect(JSON.parse(error.message).error.statusCode).toBe(403);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -83,7 +83,8 @@ export class ContentNodeDialogService {
|
|||||||
|
|
||||||
return select;
|
return select;
|
||||||
} else {
|
} else {
|
||||||
return Observable.throw({ statusCode: 403 });
|
let errors = new Error(JSON.stringify({ error: { statusCode: 403 } } ));
|
||||||
|
return Observable.throw(errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user