mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-3176] Fixed permissionsissue when editing metadata (#3476)
This commit is contained in:
parent
d914115f82
commit
1b049f468e
@ -118,8 +118,14 @@ export class NodesApiService {
|
||||
*/
|
||||
updateNode(nodeId: string, nodeBody: any, options: any = {}): Observable<MinimalNodeEntryEntity> {
|
||||
const { nodesApi, handleError, getEntryFromEntity } = this;
|
||||
|
||||
const defaults = {
|
||||
include: [ 'path', 'properties', 'allowableOperations', 'permissions' ]
|
||||
};
|
||||
const queryOptions = Object.assign(defaults, options);
|
||||
|
||||
const promise = nodesApi
|
||||
.updateNode(nodeId, nodeBody, options)
|
||||
.updateNode(nodeId, nodeBody, queryOptions)
|
||||
.then(getEntryFromEntity);
|
||||
|
||||
return Observable.fromPromise(promise).catch(handleError);
|
||||
|
Loading…
x
Reference in New Issue
Block a user