Open seboudry opened 2 months ago
I think this should be a good improvement. @alfespa17 do you remember if there is any existing api endpoint that returns the current user permissions?
I guess you can do a get request to api/v1/organization/organizationid/teams
and compare the response with the JWT token inside the UI to show or not some field in the UI
also +1 for this one
Feedback
Hi!
Currently when adding a team to a workspace it makes this one available to members of that team (or Dex group).
But, if no manage permissions is granted, all creation/modification buttons/screens are present.
This is weird because users thinks they can do many things and error message popped (or 403 API response just ignored by UI with an infinite wait icon). Furthermore, we dont want to expose organization/workspace settings/variables (and states) to users that don't have manage permissions.
It will be better for user experience to not shows these creation/modification things.
Is this a something possible and may be provided to a future release?