Skip to content

Commit

Permalink
Merge pull request #5981 from christianbeeznest/rna-22251
Browse files Browse the repository at this point in the history
Course: Show all eligible users in student enrollment list - refs BT#22251
  • Loading branch information
christianbeeznest authored Dec 17, 2024
2 parents 44c7cce + ae0e097 commit 7040e87
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions public/main/user/subscribe_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,7 @@ function get_number_of_users()
$sessionId = api_get_session_id();
$courseId = api_get_course_int_id();

$studentRoleFilter = " AND (
u.roles LIKE '%ROLE_STUDENT%'
)
";

$studentRoleFilter = '';
$teacherRoleFilter = " AND (
u.roles LIKE '%ROLE_TEACHER%' OR
u.roles LIKE '%ROLE_ADMIN%' OR
Expand Down Expand Up @@ -481,11 +477,7 @@ function get_user_data($from, $number_of_items, $column, $direction)
u.id AS col5";
}

$studentRoleFilter = " AND (
u.roles LIKE '%ROLE_STUDENT%'
)
";

$studentRoleFilter = '';
$teacherRoleFilter = " AND (
u.roles LIKE '%ROLE_TEACHER%' OR
u.roles LIKE '%ROLE_ADMIN%' OR
Expand Down

0 comments on commit 7040e87

Please sign in to comment.