Can't switch role to 'student'

Re: Can't switch role to 'student'

by Sergio Villa -
Number of replies: 0
cleardot.gifMostrar romanização
PROBLEM SOLVED !!!!!!
One of the tables had a "roleid" wrong, was pointing in May when one should be pointing. That is was a problem in the table in the database.
After the change in the profile table student returned to work, and without the need for changes in the Moodle code!

The table is mdl_role_capabilities, research in this table has rows where capability 'moodle / site: doanything'.

mysql> SELECT * FROM WHERE bancodedados.mdl_role_capabilities capability = 'moodle / site: doanything';

# Do not know what the database #

certainly appeared two lines of this table, one with the 'roleid' equal to 5,
Just for a change.

Sds,

Sergio Villa.