-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct bean handling of authenticated user
- Loading branch information
mebo4b
committed
Oct 28, 2020
1 parent
b5101f7
commit 03b45ea
Showing
7 changed files
with
94 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 2 additions & 11 deletions
13
src/main/java/de/caritas/cob/userservice/api/service/liveevents/UserIdsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
package de.caritas.cob.userservice.api.service.liveevents; | ||
|
||
import de.caritas.cob.userservice.api.helper.AuthenticatedUser; | ||
import java.util.List; | ||
import lombok.NonNull; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
abstract class UserIdsProvider { | ||
interface UserIdsProvider { | ||
|
||
final @NonNull AuthenticatedUser authenticatedUser; | ||
List<String> collectUserIds(String rcGroupId); | ||
|
||
abstract List<String> collectUserIds(String rcGroupId); | ||
|
||
boolean notInitiatingUser(String userId) { | ||
return !userId.equals(this.authenticatedUser.getUserId()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.