You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by bh...@apache.org on 2019/06/04 11:50:09 UTC
[incubator-dlab] branch feature/projects updated: DLAB-742 fixed
authorization issue
This is an automated email from the ASF dual-hosted git repository.
bhliva pushed a commit to branch feature/projects
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/feature/projects by this push:
new c1b1fe6 DLAB-742 fixed authorization issue
c1b1fe6 is described below
commit c1b1fe6bd42fdc8508bd226510f59942696c7f06
Author: bhliva <bo...@epam.com>
AuthorDate: Tue Jun 4 14:49:35 2019 +0300
DLAB-742 fixed authorization issue
---
.../src/main/java/com/epam/dlab/backendapi/roles/UserRoles.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/services/self-service/src/main/java/com/epam/dlab/backendapi/roles/UserRoles.java b/services/self-service/src/main/java/com/epam/dlab/backendapi/roles/UserRoles.java
index a1fabd1..a8800e2 100644
--- a/services/self-service/src/main/java/com/epam/dlab/backendapi/roles/UserRoles.java
+++ b/services/self-service/src/main/java/com/epam/dlab/backendapi/roles/UserRoles.java
@@ -253,7 +253,7 @@ public class UserRoles {
final Optional<String> group = role.getGroups()
.stream()
- .filter(g -> userRoles.contains(g) && userGroups.getOrDefault(g, Collections.emptySet()).contains(userInfo.getName()))
+ .filter(g -> userGroups.getOrDefault(g, Collections.emptySet()).contains(userInfo.getName()))
.findAny();
if (group.isPresent()) {
LOGGER.trace("Got access by local group {}", group.get());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org