bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Administrative and Descriptive etadata Standard.
Other
6 stars 0 forks source link

strange User Management behaviour in Test environment #565

Open NicoledeGreef opened 7 hours ago

NicoledeGreef commented 7 hours ago

Describe the bug

In Test environment, when a Catalogue admin user adjusts permissions for another user, upon saving, the checkboxes all uncheck and Catalogue admin user loses their Catalogue admin role.

To reproduce

Steps to reproduce the behaviour:

  1. in Test, as an IDIR account with the Catalogue admin user role already, access the "People" tab
  2. Search for a user whose roles you want to adjust
  3. Click "Edit" for the user
  4. Access the "Roles" tab
  5. check the Catalogue admin user role
  6. click Save

Expected behaviour

Upon Save there should be a confirmation:

Status message The roles have been updated.

and the checkboxes applied prior to Save should persist. The user that made the Save should not lose their roles.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

One other strange thing I noticed in Test was that even though David's First Name and Last Name had been added some time ago, his account is still showing up as:

Fong, David FIN:EX

whereas in Dev it displays as expected: image

NicoledeGreef commented 6 hours ago

In preliminary discussion when this was discovered, @danhgov noted that the Roles are visible in the Edit profile tab for Drupal admin user among many other things, whereas "Catalogue admin" users only see First name, Last name and Organization on the "Edit profile" tab. The "Roles" tab seems to have been set up specifically for "Catalogue admin" users so that they don't see all the extra stuff and perhaps there is an issue with that view?

NicoledeGreef commented 4 hours ago

If I use an Incognito browser and log in, it appears I still have the Data catalogue administrator role. I cleared my browser cache in my regular browser window and re-logged in and then I was able to see that I still had the Data catalogue administrator role.

I tried adjusting another user's permissions; they were a Catalogue user, I tried to make them an Catalogue editor. When I click "Save" unfortunately the checkboxes all uncheck. If I move around and come back to that screen the user still has no roles applied.