I have an odd one that I've been trying to find an answer for.
We just migrated from Moodle 2.8 to Moodle 3.4 over the holiday. On our test, sandbox, and production Moodle 3.4 systems, if a Teacher in a course set to Hide, switches role to Student, they get an error page that says "Sorry, but you do not currently have permissions to do that (View hidden courses)"
In fact, the Teacher role does indeed have that permission, and in fact I get the same error as sysadmin. The Student role does not, of course, have that permission, but I wouldn't want it to.
Further confusing the situation, on another Moodle 3.4 that I have for my own testing, it works fine. As sysadmin or logged in with a non-admin Teacher account, I can go into a course I'm teaching that is set to Hide, switch role to Student, and see everything in a student view, just as I would expect to. And I checked, Student there doesn't have View hidden courses either. In fact, I've been unable to find any difference in the role setting between the system that works and the systems that don't.
I'm positive there's some setting I have changed and forgotten, or something simple I need to change, but I have been unable to find what that is either searching here or a general Google. I've tried every search term wording I can think of that should get it.
Can someone point me in the right direction, please? The faculty are getting frustrated.