flagsmith
flagsmith copied to clipboard
The tag-based permission only validate some views
How are you running Flagsmith
- [ ] Self Hosted with Docker
- [ ] Self Hosted with Kubernetes
- [X] SaaS at flagsmith.com
- [X] Some other way (add details in description below)
Describe the bug
The tag-based permission with UPDATE_FEATURE_STATE only validates FeatureStatePermissions and not EnvironmentFeatureStatePermissions.
This last one is used when updating a feature state value from the feature modal.
Steps To Reproduce
- Create a role with View Project, View environment, and update feature state, add a tag, and assign it to test user
- Log in with the test user
- Go to the project -> environment that you have permission to access.
- Select a feature and update the feature state
- The feature state was updated successfully (This is an error)
Expected behavior
If the feature does not have the same tag, the feature state value should not be updated.
Screenshots
No response
CC: @matthewelwell @gagantrivedi @kyle-ssg
@gagantrivedi can you confirm if this is expected behaviour or not?
@gagantrivedi can you confirm if this is expected behaviour or not?
Looks like a legit issue to me
Fixed in https://github.com/Flagsmith/flagsmith/pull/4523