WildAid / o-fish-web

Web application for the Officer's Fishery Information Sharing Hub (O-FISH). The web app allows agencies to gain insights from the aggregated information gathered during a routine vessel inspection (submitted via the web app).
Apache License 2.0
31 stars 41 forks source link

Users page lost the "Edit" link for administrators #519

Closed Sheeri closed 2 years ago

Sheeri commented 2 years ago

To Reproduce Steps to reproduce the behavior:

  1. Go to https://o-fish-trial-dmssx.mongodbstitch.com/
  2. Login as global-admin@wildaid.org
  3. Click on Users
  4. Note that there is no "Edit" link on the right:
Screen Shot 2022-02-15 at 10 28 42 AM

Expected behavior "Edit" should appear as a link for agency and global admins on the users page. It should NOT appear for field officers (except perhaps their own record, if that's not too hard).

Additional context This behavior came about after the new changes made so that npm would build. Compare to the older version, still in production: https://o-fish-yzqrr.mongodbstitch.com/#/users

Screen Shot 2022-02-15 at 10 28 14 AM