Moodle

After changing password, all courses are listed out (with solution)

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.7.2
  • Fix Version/s: None
  • Component/s: Accessibility
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE

Description

I enabled a user's force password change option. He can login and change the password successfully. However, after that, all courses were listed out but not only those he enrolled.
The first option of 'Appreance > Front page >Front page items when logged in' is set to List of courses and None for others.
Users should only see their courses in normal login.

Solution:

add

load_all_capabilities();

after

if (!empty($realuser)) {
$USER->realuser = $realuser;
}

for reloading the user's capabilities.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: