diff --git a/index.html b/index.html
index cf3c7f7..25f83ba 100644
--- a/index.html
+++ b/index.html
@@ -75,6 +75,7 @@
logSheet.init().then(result => {
console.log(result)
floGlobals.isSubAdmin = floGlobals.subAdmins.includes(myFloID)
+ floGlobals.isTrustedID = floGlobals.trustedIDs.includes(myFloID)
hideLoader()
showPage(window.location.hash, { firstLoad: true })
//display add buttons if subAdmin, else hide
@@ -1345,7 +1346,7 @@
return `by ${floID} (${time})`
}
const createGradeField = (grade) => {
- const isDisabled = (!isWriteable || !floGlobals.isSubAdmin)
+ const isDisabled = (!isWriteable || (!floGlobals.isSubAdmin && !floGlobals.isTrustedID))
return html``
}
for (let i = startingIndex; i < endingIndex; i++) {
diff --git a/scripts/logsheet.js b/scripts/logsheet.js
index 92688c2..47811a9 100644
--- a/scripts/logsheet.js
+++ b/scripts/logsheet.js
@@ -126,8 +126,8 @@
logSheet.gradeLog = function (sheet_id, vc, grade) {
return new Promise((resolve, reject) => {
//reject if user is not subAdmin or editor
- if (!floGlobals.subAdmins.includes(floDapps.user.id))
- return reject("Only subAdmins can grade logs")
+ if (!floGlobals.subAdmins.includes(floDapps.user.id) && !floGlobals.trustedIDs.includes(floDapps.user.id))
+ return reject("Only subAdmins/trustedIDs can grade logs")
let log = floGlobals.generalDataset(TYPE_SHEET_ENTRY, {
receiverID: sheet_id