Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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
- All
- Comments
- History
- Activity
- Source
- Test Sessions