From a7a760146fed8e5b125ed27791d4e1ae6de754ed Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Thu, 24 Oct 2024 11:32:10 -0400 Subject: [PATCH] Fix Admin check loop --- src/src/service/ingest_api.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/src/service/ingest_api.js b/src/src/service/ingest_api.js index c6f8e02c..cfed90b7 100644 --- a/src/src/service/ingest_api.js +++ b/src/src/service/ingest_api.js @@ -57,16 +57,15 @@ export function ingest_api_user_admin(auth) { console.debug('%c◉ res ', 'color:#00ff7b', res); let groups = res.data.groups; - console.debug('%c◉ ADMIN ', 'color:#FF227b', groups); - + console.debug('%c◉ ADMIN Check:', 'color:#FF227b', groups); for (let group in groups) { let groupName = groups[group].name + console.debug('%c◉ groupName ', 'color:#ffe921', groupName); if(groupName.includes("hubmap-data-admin")){ return true - }else{ - return false } } + return false })