AtlasOfLivingAustralia / biocache-hubs

Biocache Hub UI grails plugin
Other
3 stars 30 forks source link

User unable to respond to assertions (cannot see 'verify this assertion' button) #579

Closed kylie-m closed 11 months ago

kylie-m commented 11 months ago

Hi all. I'm trying to finally nail down the question of giving someone access to respond to assertions in biocache.

I worked with this on Sushant and he established that all a user needs is ROLE_COLLECTION_ADMIN added in userdetails and to log out and in, however I currently have a user with that role who can't see the Verify this assertion button on a record.

Testing with my own gmail account (https://auth.ala.org.au/userdetails/admin/user/show/89299), despite giving it the same role, I can't see that button either.

This is to get someone responding to assertions in the iNaturalist dataset (example record is https://biocache.ala.org.au/occurrences/b0c22061-b3e9-4223-883c-1fc81b6e2862), so not a museum collection, but I can see the Verify button using my own regular admin account on an iNat record, so I don't think that's going to be an issue (ie it's not hardcoded to only work with museum records or something).

My next thought is that some cache needs to be cleared somewhere, but I'm hesitant to go clearing caches willy-nilly to try and work it out.

adam-collins commented 11 months ago

It also appears that the login bug is a problem here. i.e. it says you are logged in but are not. I resolved this by:

I have been able to reproduce this issue, showing logged in when not, by:

peggynewman commented 11 months ago

@adam-collins is this is the same problem that causes us only sometimes see our Edit button on the collectory pages?

adam-collins commented 11 months ago

Yes.

adam-collins commented 11 months ago

This is fixed now. It was a configuration issue. Ansible is updated.