Flagsmith / Flagsmith/flagsmith

Users without organisation admin permissions cannot see roles when setting Environment/Project permissions

Open
#3,784 0 comments 0 reactions 1 assignee Assigned to @matthewelwell View on GitHub
bug
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

### How are you running Flagsmith

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

### Describe the bug

As an Environment / Project admin I can set permissions for users and groups for that entity. Currently they cannot do this for roles since the list of roles is not coming back for those users.

![image](https://github.com/Flagsmith/flagsmith/assets/8608314/9294aec8-a8fb-4c2e-acd0-420f4e806765)

### Steps To Reproduce

- Login as a user that is an environment admin
- Attempt to edit permissions for a role in said environment

### Expected behavior

Non-org admins can retrieve roles but not edit them

### Screenshots

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.