You don't have permission to view courses here

Re: You don't have permission to view courses here

by Colin Fraser -
Number of replies: 0
Picture of Documentation writers Picture of Testers
1. Have you followed the procedures outlined above?
2. Add the line Ken suggests
edit config.php
one line above the line that has:
require_once(__DIR__ . '/lib/setup.php');
add this line:
$CFG->defaultfrontpageroleid='8';

3. If that doesn't work, go to the database, via phpMyAdmin look for mdl_role_capabilities table and make sure that the each moodle/site: capability has a context id, role id and permission of 1. Be especially aware of the "goanywhere_doanything" permission, that should only be assigned to role id of 1. This is tedious and exacting, but you should be able to move forward, unless you have managed to delete the Roles themselves. Just be careful. While scrolling through the table, and the site capabilities are not all clumped in one group, just check and make sure that the other capabilities that are set are correct.  

That should get you into the Moodle.