terrakube icon indicating copy to clipboard operation
terrakube copied to clipboard

Team permissions and actions visibility

Open seboudry opened this issue 1 year ago • 3 comments

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?

seboudry avatar Jul 30 '24 13:07 seboudry

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?

jcanizalez avatar Jul 30 '24 16:07 jcanizalez

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

alfespa17 avatar Jul 30 '24 17:07 alfespa17

also +1 for this one

stanleyz avatar Aug 02 '24 04:08 stanleyz