added subadmin to approved publishing IDs

This commit is contained in:
sairaj mote 2022-04-24 23:09:31 +05:30
parent 82ff97e1e5
commit cb865a5fb4

View File

@ -1204,7 +1204,7 @@
requestCard(details) {
const { senderID, message: { articleID, title }, time, vectorClock } = details
const { publishedVc, rejectedVc, approvedID } = floGlobals.appObjects.adminData
const shouldRender = approvedID.hasOwnProperty(senderID) && !publishedVc.hasOwnProperty(vectorClock) && !rejectedVc.hasOwnProperty(vectorClock)
const shouldRender = (approvedID.hasOwnProperty(senderID) || floGlobals.subAdmins.includes(senderID)) && !publishedVc.hasOwnProperty(vectorClock) && !rejectedVc.hasOwnProperty(vectorClock)
if (shouldRender) {
const clone = getRef('request_template').content.cloneNode(true).firstElementChild
clone.dataset.vc = vectorClock