Disable all commands for change if connection is readonly #2799
+48
−37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
This PR will disable all commands used for changing content on the server, if the connection is marked readonly.
This include terminals and run of actions, but not library list change command or action management etc.
EDIT: C4i will now ask for reload when the readonly value changes in the config.
EDIT: The readonly field has been moved to the Features section as the first option:
EDIT: The readonly connection setting is decribed in the PR #71 in the Docs repo.
EDIT: Save As will now fail with filesystem error if the connection is in readonly mode.
How to test this PR
Checklist