Details
Description
Hello,
in user/edit_form?php in function definition_after_data() I noticed a strange code inversion :
// remove description
if (empty($user->description) && !empty($CFG->profilesforenrolledusersonly) && !record_exists('role_assignments', 'userid', $userid)) {
$mform->removeElement('description');
}
if ($user = get_record('user', 'id', $userid)) {
// print picture
Should'nt the test empty($user->description) be after reading the user record ? ![]()
Cheers
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
Thanks, I have fixed this in CVS.
Its not a security issue as it just stops a user from editting their profile when not enrolled on a course (the admin can still do it)