Currently EditPage calls PermissionManager::userCan for edit right and manually falls back to checking for 'create' right if the page does not exist. This fallback should be moved into PermissionManager itself and applied always.
Order of operation:
- 1. Find all places where PermissionManager::userCan is used for 'edit' right, check if 'create' right is also checked, if not, figure out why and whether it should. We need to discuss the findings at this point and decide whether the idea is viable.
- 2. Move the fallback into PermissionManager. Somewhere around here probably.
- 3. Cover the new behavior by tests
- 4. Simplify all the calling code in core and perhaps deployed extensions.