Commit ca2c84df authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

fix

parent 4f5c4ebf
...@@ -138,7 +138,7 @@ this.ApiClient = class { ...@@ -138,7 +138,7 @@ this.ApiClient = class {
const contentType = response.headers.get('content-type') || ''; const contentType = response.headers.get('content-type') || '';
try { try {
if (contentType.includes('application/json')) { if (contentType.includes('application/json') || contentType.includes('application/asfdoc+json')) {
return await response.json(); return await response.json();
} }
......
...@@ -1186,6 +1186,7 @@ class ARMDocumentButtons { ...@@ -1186,6 +1186,7 @@ class ARMDocumentButtons {
if(!docInfo) return false; if(!docInfo) return false;
if(docInfo.registered == "true") return false; if(docInfo.registered == "true") return false;
if(registryInfo.rr_edit != "Y") return false; if(registryInfo.rr_edit != "Y") return false;
if(this._doc.canEdit == "false") return false;
if(workInfo) { if(workInfo) {
const {actionID, has_subprocesses, parent_process} = workInfo; const {actionID, has_subprocesses, parent_process} = workInfo;
...@@ -2001,8 +2002,7 @@ class ARMFooter { ...@@ -2001,8 +2002,7 @@ class ARMFooter {
} }
} }
} }
if(_doc.canEdit == "true") _doc.canEdit = true; return canEdit;
return canEdit || _doc.canEdit;
} }
async initParams(_doc){ async initParams(_doc){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment