Skip to content
Snippets Groups Projects
Commit cd3a6e01 authored by srosse's avatar srosse
Browse files

OO-3816: fix rs if user manager kick a user out of a course in admin

parent 74371263
No related branches found
No related tags found
No related merge requests found
......@@ -429,9 +429,11 @@ public class CourseOverviewController extends BasicController {
List<Long> groupKeys = new ArrayList<>();
List<RepositoryEntry> repoEntryToLeave = new ArrayList<>();
for(CourseMemberView view:views) {
for(BusinessGroupShort group:view.getGroups()) {
if(!BusinessGroupManagedFlag.isManaged(group.getManagedFlags(), BusinessGroupManagedFlag.membersmanagement)) {
groupKeys.add(group.getKey());
if(view.getGroups() != null) {
for(BusinessGroupShort group:view.getGroups()) {
if(!BusinessGroupManagedFlag.isManaged(group.getManagedFlags(), BusinessGroupManagedFlag.membersmanagement)) {
groupKeys.add(group.getKey());
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment