Commit 709345c6 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

fix openDocument.js

parent 4fe64316
......@@ -1009,7 +1009,7 @@ class Document {
break;
case 'resolution-action-single': console.log('Резолюция? хммм....'); break; // Резолюция
}
} else if(AS.OPTIONS.currentUser.userid == author.id) {
} else if(AS.OPTIONS.currentUser.userid == author.id && ['null', 'assignment-single'].includes(parent_process)) {
if(completionForm && completionForm.hasOwnProperty('is_result_free') && !completionForm.is_result_free) {
createButton(this._doc, i18n.tr("Завершить"), 'arm_action_button3', () => {
_WORK.acceptWork(this._doc);
......@@ -1029,7 +1029,6 @@ class Document {
}
}
}
}
resizePanels(this._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