mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Revert "MDL-35556 completion: Improve user completion data permission checking"
This reverts commit f493d528c2
.
This commit is contained in:
parent
d2dc4c4551
commit
cd1a9d05e8
3 changed files with 19 additions and 75 deletions
|
@ -561,12 +561,7 @@ foreach ($progress as $user) {
|
|||
} else {
|
||||
print PHP_EOL.'<tr id="user-'.$user->id.'">';
|
||||
|
||||
if (completion_can_view_data($user->id, $course)) {
|
||||
$userurl = new moodle_url('/blocks/completionstatus/details.php', array('course' => $course->id, 'user' => $user->id));
|
||||
} else {
|
||||
$userurl = new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $course->id));
|
||||
}
|
||||
|
||||
$userurl = new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $course->id));
|
||||
print '<th scope="row"><a href="'.$userurl->out().'">'.fullname($user).'</a></th>';
|
||||
foreach ($extrafields as $field) {
|
||||
echo '<td>'.s($user->{$field}).'</td>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue