error/moodle/cannotviewcategory
From MoodleDocs
If you obtain the error 'You don't have permission to view courses here', please ask your site admin to make sure your role has the capability View list of courses you are not enrolled in allowed.