-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
2.0.3
-
MOODLE_20_STABLE
The following code is use to display the description in /user/profile.php:
if ($user->description && !isset($hiddenfields['description'])) {
|
if (!empty($CFG->profilesforenrolledusersonly) && !$currentuser && !$DB->record_exists('role_assignments', array('userid'=>$user->id))) {
|
echo get_string('profilenotshown', 'moodle');
|
} else {
|
$user->description = file_rewrite_pluginfile_urls($user->description, 'pluginfile.php', $usercontext->id, 'user', 'profile', null);
|
$options = array('overflowdiv'=>true);
|
echo format_text($user->description, $user->descriptionformat, $options);
|
}
|
}
|
It seems strange to check into the role_assignements table. What is the reason?
- has been marked as being related by
-
MDL-26774 Fix moodle_user_get_users_by_id
-
- Closed
-