PT-3774: Revert edits and show notification when you can't edit text #1971
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.
This is a quick bandaid fix to the problem of looking like you can edit but you can't. We plan to make better changes in [PT-3043] When user attempts to edit book which they have no permission to edit: inform them of permissions, prevent editing - Jira, but that will take design and implementation like this will not.
Note: I could have put this exception in more places on the backend, but I decided I'd rather not disrupt things and refactor a bunch of stuff right now when there are already two other things in
SetChapterUsxthat aren't inSetChapterUsfm(and likely in the otherSetmethods, but I didn't look). For now, I'll just do this shortcut since this is a bandaid in the first place. We can do a better job later.This change is