First, I would like to thank @Ken Task and @Colin Fraser who made suggestions on an older post for the 'You don't have permission to view this list of courses' error (https://moodle.org/mod/forum/discuss.php?d=388498#p1636643). Ken suggested I create a newer post so, since I enabled the debugger and generated more info, I thought I'd follow his advice and create this post.
As you can see from the image below, we are encountering the 'You don't have permission to view this list of courses' error. After trying Ken's suggestion unsuccessfully, I turned on debugging via the config.php file and got the error code: cannotviewcategory.
I looked through the config.php file and do not see where to override this error. I've also checked the database via phpMyAdmin and do not see where to reset this. As it stands, we cannot access the site at all. Every attempt to get to the admin sections of the site (managedocs, purge_cache, etc) is met with the same error message.
We're running Moodle version 3.8.
I appreciate any suggestions to overcome this issue and regain access to the site anyone can provide.
Thank you and regards,
Mike