discord: fix admin-check for /inv

it was being checked in the EmailAddress record, only set if Jellyfin
login is disabled, or "access jfa-go" is checked for a
non-Jellyfin-admin user in Accounts. Instead, i've factored out the
actual auth code into a "canAccessAdminPage"-ish function, which is
called for this too. Should fix #378.
This commit is contained in:
Harvey Tindall
2025-05-15 17:50:18 +01:00
parent 01a75c3e23
commit 07d02f8302
3 changed files with 42 additions and 17 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
"languageSet": "Language set to {language}.",
"discordDMs": "Please check your DMs for a response.",
"sentInvite": "Sent invite.",
"sentInviteFailure": "Failed to send invite, check logs."
"sentInviteFailure": "Failed to send invite, check logs.",
"noPermission": "You do not have permissions for this action."
}
}