Skip to content

Commit

Permalink
autoCommit 2024 1Mo.165701
Browse files Browse the repository at this point in the history
  • Loading branch information
LoydOsborne committed Dec 9, 2024
1 parent 13972eb commit 5616a47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions website/staff-portal/login-redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5616a47

Please sign in to comment.