|
|
@ -134,11 +134,6 @@ public class ConferenceService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isCurrentUserParticipant(List<ConferenceUser> conferenceUsers) {
|
|
|
|
public boolean isCurrentUserParticipant(List<ConferenceUser> conferenceUsers) {
|
|
|
|
for (ConferenceUser participant : conferenceUsers) {
|
|
|
|
return conferenceUsers.stream().anyMatch(participant -> participant.getUser().equals(userService.getCurrentUser()));
|
|
|
|
if (participant.getUser().getId() == userService.getCurrentUser().getId()) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|