I try with no categories being hidden (don't hide any category) in https://your-moodle.site/course/management.php
I just encountered the same problem, and the cause seems to be my hidden category. Changing it solved it.
This happened with Moodle 3.8.0 though, so it might not be fully fixed yet, or maybe it is due to my outdated theme
I faced the same issue, can not access my moodle site any more and got the below error message:
You don't have permission to view this list of courses.
I also have one hidden category, and inside it one course but not hided.
the question is how to solve it while am not able to access the moodle site or reach to any page.
Please any body help me to solve this issue.
" You don't have permission to view this list of courses. "
The issue reason was that i have a hidden course category contains 1 course visible (not hidden). seems that should not have a hidden course category and visible course inside it .
I have fixed it easly, THANKS TO GOOD.
Because im not able to open my moodle site or even adminstration section, so followed the below steps:
1- Went to host control panel => then PHP admin => then opnned my moodle database.
2- Search for course_categories table, then knew that there is a hidden category, contains 1 course.
3- Then went to course table, and knew that the course of the hidden category is visible, so i changed it to invisible by
updating the values of two column from 1 to 0 , like below:
(UPDATE `course` SET `visible` = '0', `visibleold` = '0' WHERE `course`.`id` = 17;)
4- went to my moodle website and refreshed the page, it worked fine.