Skip to content

Commit

Permalink
Fix Admin check loop
Browse files Browse the repository at this point in the history
  • Loading branch information
BirdMachine committed Oct 24, 2024
1 parent b5a32fc commit a7a7601
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/src/service/ingest_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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


})
Expand Down

0 comments on commit a7a7601

Please sign in to comment.