FlowFuse / FlowFuse/flowfuse

Allow Team Member role to enable Device Developer Mode

Open
#3,829 0 comments 0 reactions 0 assignees View on GitHub
size:S task
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

### Description

Currently, only Team Owners can toggle developer mode on a device. This is because it uses the `device:edit` permission which is limited to Owners.

However we have various workflows that require a device to be toggled in and out of dev mode. Requiring an Owner to do that each time will add friction for any Team Member working on the device.

We should allow Team Members to toggle this setting. We have already added a carve-out for editing device env vars (`device:edit-env`) - a similar one should be added for this action.

Alongside this, the UI currently doesn't do any role checks as to whether the dev mode toggle should be enabled - allowing any user to click it and get back a 'failed 403' notification. That should be addressed as part of this task.

- [ ] Allow Member role to toggle developer mode
- [ ] Add role check in the UI to disable the toggle if user doesn't have permission

### 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.