From cb865a5fb4aa7f70924ef86492b90964a8cd688b Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 24 Apr 2022 23:09:31 +0530 Subject: [PATCH] added subadmin to approved publishing IDs --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 5d5eab4..3c29162 100644 --- a/index.html +++ b/index.html @@ -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