- 🇷🇺Russia Chi
Can we establish a new policy for the permission names and apply it only to new permissions? Contributed modules and custom modules would benefit from it right now because they will not have to follow this weird naming convention.
- Status changed to Needs review
almost 2 years ago 3:52pm 2 June 2023 - last update
almost 2 years ago Patch Failed to Apply - Status changed to Needs work
almost 2 years ago 4:21pm 2 June 2023 - 🇺🇸United States volkswagenchick San Francisco Bay Area
Removing novice tag for now as it looks like a question of policy change was asked.
- 🇨🇭Switzerland berdir Switzerland
Re #67, nobody is forced to do anything in contrib/custom code. permissions are just a string as far as core is concerned. It just happens to commonly use spaces instead of underscores.
The payment module for example uses a hierarchical permission names, separated by .: https://git.drupalcode.org/project/payment/-/blob/8.x-2.x/payment.permis...
IMHO, switching spaces to underscores without any other change like the patch in #68 is pretty pointless. It doesn't solve conflicts, it doesn't enable us to do anything we can't do now. The issue summary is also wrong in regards to YAML, spaces in keys do not need to be quoted as visible in those patches. If we were to introduce a change, it should be in context of #2919636: Design a better model for managing permissions → IMHO and for example move us toward a hierarchical permission system.
So I'm changing my opinion of #62 and am voting in favor of closing this as a duplicate of that ideas issue.