Problem/Motivation
The previously hidden Webform text format now appears in the UI, since #2502637: Disabled text formats can't be seen in the GUI. This is pretty confusing, and when you click on 'Enable' you get Access Denied.
Steps to reproduce
In 10.4+ and 11.1+, go to the text formats list with Webform enabled.

Proposed resolution
I'm not really sure. Ideally, this format would not display in the UI anywhere.
Places in the UI that the webform text format is displayed
- /admin/config/content/formats
- /admin/structure/types/manage/page/fields/node.page.body
- /admin/people/permissions
- /admin/people/permissions/authenticated
Remaining tasks
User interface changes
Ensure the hidden text format doesn't appear in the UI.
API changes
N/A
Data model changes
N/A
Comments
Comment #2
cilefen commentedComment #5
jrockowitz commentedPlease review the slightly ugly but straightforward solution with the disabled test fixed.
Comment #6
jrockowitz commentedComment #7
jrockowitz commentedComment #8
jrockowitz commentedI just realized we can't remove the 'Use the Webform (Default) - DO NOT EDIT text format' permission from the page but we need to hide it using #access: FALSE because we don't want authenticated users to lose the permission.
Comment #9
jrockowitz commentedLooks like we need to use hook_form_alter to hide the permission but we can't use hook_form_alter to remove the filter from the admin because drag and drop show an empty row.
Comment #10
jrockowitz commentedComment #11
pameeela commented@jrockowitz thanks for working on this! I gave it a manual test and it appears to resolve all instances of this appearing in the UI.
Comment #12
jrockowitz commentedSince there is test coverage and this is a major issue, I am going to merge it and we can fix any additional issue as they come up.
Comment #14
jrockowitz commentedComment #15
cilefen commentedShould we close #3477051: The hidden webform text format leads to text format selects with only one option now?