Manual talk:Hooks/getUserPermissionsErrors
getUserPermissionsErrors for unlogged users
editgetUserPermissionsErrors is not checked if user only has 'read' permission for the current page.
getUserPermissionsErrors is not checked if user only has 'read' permission for the current page.