Manual talk:Hooks/getUserPermissionsErrors
From MediaWiki.org
[edit] getUserPermissionsErrors for unlogged users
getUserPermissionsErrors is not checked if user only has 'read' permission for the current page.