Extension doesn't work for everyone who isn't an admin
Open
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
The extension crashes with a
```
failed to pull environments: forbidden, please check your credentials
```
error.
It seems that it's due to the fact that we fetch environments by the organizationId,
and anyone who isn't an admin gets permissions / role assigned to a specific project, so essentially they'd never have permissions for the whole org - which results in a `403 Forbidden` error.
**Steps to repro:**
1. Create an API key with `Deployer` permissions
2. Login to the env0 extension in vs-code with the given credentials
3. You should get the aforementioned error
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.