Device editor access by viewer not working
- Dominant language
- JavaScript
- Stars
- 400
- Forks
- 89
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 149
Description
### Current Behavior
In my dev env, viewer role user cannot access the device editor:

Additionally, when a viewer attempts to enable or disable developer mode, they are rightly inhibited however the toast message is undesirable

### Expected Behavior
The Viewer should be treated the same as for Instances (i.e. view flows access)
The toast should be more user centric. It may be desirable to in fact remove the try/catch/alert code underneath the dev mode toggle and permit the error to be caught and shown by the apps default handler.
### Steps To Reproduce
create a viewer user and attempt to access device editor of an app assigned device
### Environment
- FlowFuse version: 2.1-git
- Node.js version:
- npm version:
- Platform/OS:
- Browser:
### Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
```[tasklist]
### Tasks
- [ ] Allow viewer view access to a device
- [ ] https://github.com/FlowFuse/flowfuse/issues/4468
```
Contributor guide
Assessment
This issue has not been assessed yet.