Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team permissions and actions visibility #1141

Open
seboudry opened this issue Jul 30, 2024 · 3 comments
Open

Team permissions and actions visibility #1141

seboudry opened this issue Jul 30, 2024 · 3 comments
Labels
feedback Share feedback to improve Terrakube

Comments

@seboudry
Copy link

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 seboudry added the feedback Share feedback to improve Terrakube label Jul 30, 2024
@jcanizalez
Copy link
Member

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?

@alfespa17
Copy link
Member

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

@stanleyz
Copy link
Contributor

stanleyz commented Aug 2, 2024

also +1 for this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Share feedback to improve Terrakube
Projects
None yet
Development

No branches or pull requests

4 participants