ThreatMapper icon indicating copy to clipboard operation
ThreatMapper copied to clipboard

Settings page top menu bar does not change when a admin make another admin a user

Open manV opened this issue 3 years ago • 3 comments

Describe the bug Settings page top menu bar does not change when a admin make another admin a user

To Reproduce Steps to reproduce the behavior:

  1. create a console and send a invite to another user as a admin
  2. once another user is ready after setup then, make him user or read_only_user
  3. now top menu bar remains intact until logout and then login

Expected behavior pic after changing user role [it should be], but this is in effect only after logging out and logging in back 138240784-d73ee400-5266-4e18-87a9-9192eafded72

Screenshots Screenshot before changing user role 138240784-d73ee400-5266-4e18-87a9-9192eafded72

Components/Services affected

  • [x] UI/Frontend
  • [x] API/Backend
  • [ ] Agent
  • [ ] Deployment/YAMLs
  • [ ] CI/CD Integration
  • [ ] Other (specify)

manV avatar Oct 21 '21 16:10 manV

Issue is the auth token set in UI still has the older permission. This needs to be fixed from backend/API.

cc: @mukuldeepfence @jatin-baweja

ibreakthecloud avatar Oct 26 '21 11:10 ibreakthecloud

I am working on this issue this issue.

mukuldeepfence avatar Oct 20 '22 12:10 mukuldeepfence

now backend will accept only desired operation according to the user role currently. issue from the backend has been fixed

mukuldeepfence avatar Oct 26 '22 10:10 mukuldeepfence