Skip to content

Commit

Permalink
Fix wrong link for teacher BT#15466
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 30, 2019
1 parent 47d6c1e commit f242014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/ajax/model.ajax.php
Expand Up @@ -2234,7 +2234,7 @@ function getWhereClause($col, $oper, $val)
$countUsers = count($obj->get_users_by_usergroup($group['id']));
$group['users'] = $countUsers;

if ($obj->allowTeachers()) {
if ($obj->allowTeachers() && $group['author_id'] == $currentUserId) {
$group['users'] = Display::url(
$countUsers,
$urlUserGroup.'&id='.$group['id']
Expand Down

0 comments on commit f242014

Please sign in to comment.