Disable switching channel from webui
Closed this issue · 6 comments
We would like to disable the channel switching from the webinterface, it should only use the provided channel from the command line argument of welle-cli
. Is such functionality already implemented?
Yes, already implemented, you just need to modify
welle.io/src/welle-cli/index.js
Line 1 in 5481d57
https://dabmonitor.com/test-1-windows.html
This was one project, but it is currently broken. Here, also switching channels was disabled.
I understand that this would give a javascript option, but would it from API (security perspective) still possible?
Conceptually I want to prevent the retune. So some kind of access control on those features. Hence monitoring is public, but it must be at the same station.
welle.io/src/welle-cli/webradiointerface.cpp
Line 517 in 5481d57
This is not implemented, we don't have time to implement this, but would welcome a patch.
This is not implemented, we don't have time to implement this, but would welcome a patch.
Would you accept that the channel is fixed once it has been given as the command line argument, or is pre-tuning and later changing something that is conceptually supported.
Not sure I understand your question. I'd add a --forbid-channel-change
option, that makes the backend refuse the POST to change channels.
Or if you think the idea further, have a --public-instance
flag (or something like that), that makes all settings read-only. Ideally, the UI would also have the controls disabled.