Commit 9ad7700b authored by Internship UKSW 2019's avatar Internship UKSW 2019

Initial commit

parent d5afabcf
......@@ -72,7 +72,7 @@ class YourDocument extends Component {
this.state.dataApprovalDocument.push(datarow2);
}
}
if (dataRevision[dataRevision.length - 1].status.includes("Waiting for Publish") || dataAllDocument[i].doc_status[0] == "Publish") {
if ((dataRevision[dataRevision.length - 1].status.includes("Waiting for Publish") || dataAllDocument[i].doc_status[0] == "Publish") && JSON.parse(localStorage.getItem("dataLogin")).user_name[0] == "Fery Afanto" && JSON.parse(localStorage.getItem('dataLogin')).user_role[0].includes("Compliance Officer")) {
let datarow3 = [];
let user_name2 = "";
for (let j = 0; j < dataUser.length; j++) {
......
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