AtlasOfLivingAustralia / biocollect

Biocollect front end application
https://biocollect.ala.org.au/
Other
10 stars 14 forks source link

ALA admin JWT privilege not recognised by BioCollect #1574

Open temi opened 7 months ago

temi commented 7 months ago

One example where this is happening is when looking up details of a survey using /ws/bioactivity/data/{id} endpoint. ALA admin JWT should be able to view the data. Actually, ws returns 401.

Cause

ecodata-client-plugin's userInfoService getUserFromJWT should return UserDetails object. ALA admin check are run using hasRole method on that object. Currently, it is returning a Map.