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

Unable to delete feature when using permission via role assigned to a group #4506

Closed
1 of 4 tasks
matthewelwell opened this issue Aug 15, 2024 · 1 comment · Fixed by #4508
Closed
1 of 4 tasks

Unable to delete feature when using permission via role assigned to a group #4506

matthewelwell opened this issue Aug 15, 2024 · 1 comment · Fixed by #4508
Assignees
Labels
bug Something isn't working

Comments

@matthewelwell
Copy link
Contributor

matthewelwell commented Aug 15, 2024

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

When using a role, configured with the delete feature permission, it is not possible to delete features. Note that it is possible to achieve this if the permission is directly attached to the group.

Steps To Reproduce

  1. Create a role with the DELETE_FEATURE permission on a given project (note that you will also need at least view project and view environment on at least one environment in the project)
  2. Assign the role to a group, and add a user to the group
  3. Log in with the user in the group
  4. Try to delete a feature in the project
  5. Notice that the feature is not deleted and a 403 error is thrown

Expected behaviour

The feature is successfully deleted

Screenshots

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants