add logging to checkAccessRights in XWikiXWikiPreferences