added subadmin to approved publishing IDs
This commit is contained in:
parent
82ff97e1e5
commit
cb865a5fb4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user