Users with lesser permissions are prompted to create instances when they can't
- Dominant language
- JavaScript
- Stars
- 400
- Forks
- 89
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 146
Description
### Current Behavior
Viewer role users are prompted to create an instance while on the team dashboard even though they don't have permissions to do so. They are able to fill in the multi-step instance creation form up to the last point but are prevented by a 403 response.
### Expected Behavior
they should not have the CTA on the dashboard page and the multi-step form should not be accessible if users don't have the necessary permissions to submit the form.
### Steps To Reproduce
In a team without applications or instances, add a new member with role viewer. Access that team with the viewer role user and navigate to the team's dashboard page.
### Environment
- FlowFuse version: 2.28.0
- Node.js version: N/A
- npm version: N/A
- Platform/OS: N/A
- Browser: N/A
### Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Contributor guide
Assessment
This issue has not been assessed yet.