@@ -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")){