Skip to content

Commit

Permalink
Merge pull request #1498 from hubmapconsortium/collectionPublish
Browse files Browse the repository at this point in the history
Fix Admin check loop
  • Loading branch information
shirey authored Oct 24, 2024
2 parents 14dd971 + a7a7601 commit 64f1b40
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 64f1b40

Please sign in to comment.