FlowFuse / FlowFuse/flowfuse

Gate “Create instance” button by application-level create permission

Open
#6,112 0 comments 0 reactions 0 assignees View on GitHub
task
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 21h
Merged PRs (30d)
146

Description

### Description

Optional

**Context / Problem**
The “Create instance” button on the instances page is shown based only on team role. It should also depend on whether the user has create permission in at least one application. This may require pre-loading a minimal application list that includes the user’s application role to evaluate eligibility.

**Acceptance criteria**
- The button is visible only if the user has create permission in at least one application within the current team context.
- If the user lacks create permission in all applications, the button is hidden.
- Evaluation uses application-level roles, not just team role.
- Implement a minimal preload (or cached fetch) of applications with the user’s role to perform the check without heavy payloads.

### Epic/Story

_No response_

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

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.