From 5616a479af0f169d2e243a5919388645b9863993 Mon Sep 17 00:00:00 2001 From: Loyd Osborne Date: Mon, 9 Dec 2024 16:57:01 -0700 Subject: [PATCH] autoCommit 2024 1Mo.165701 --- website/staff-portal/login-redirect.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/staff-portal/login-redirect.js b/website/staff-portal/login-redirect.js index f7d56abe2..e45743d78 100644 --- a/website/staff-portal/login-redirect.js +++ b/website/staff-portal/login-redirect.js @@ -45,14 +45,14 @@ document.addEventListener('DOMContentLoaded', function() { return null; } - // Function to check if the user has any roles - async function checkUserRoles(accessToken) { - const userId = await getUserID(accessToken); - if (!userId) return false; + // // Function to check if the user has any roles + // async function checkUserRoles(accessToken) { + // const userId = await getUserID(accessToken); + // if (!userId) return false; - const userInfo = await fetchJSON('https://api.scyted.tv/website/staff-portal/user-info.json'); - return userInfo && userInfo[userId] && userInfo[userId].length > 0; - } + // const userInfo = await fetchJSON('https://api.scyted.tv/website/staff-portal/user-info.json'); + // return userInfo && userInfo[userId] && userInfo[userId].length > 0; + // } // Check if the accessToken cookie is present const accessToken = getCookie('accessToken');