#69 changed isCurrentUserParticipant
This commit is contained in:
parent
713e50043e
commit
9edcebb2f5
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user