Skip to content

Commit

Permalink
fixed users not visible after login
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Sep 15, 2020
1 parent 007eabb commit a0edc79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/erudika/scoold/utils/ScooldUtils.java
Expand Up @@ -1031,7 +1031,8 @@ public String getSpaceFilter(Profile authUser, String spaceId) {
} else {
return "properties.space:\"" + DEFAULT_SPACE + "\"";
}
} else if (isDefaultSpace(spaceId) && ((authUser == null && isDefaultSpacePublic()) || isMod(authUser))) {
} else if (isDefaultSpace(spaceId) && ((authUser == null && isDefaultSpacePublic()) ||
canAccessSpace(authUser, DEFAULT_SPACE) || isMod(authUser))) {
return "*";
} else {
return "properties.space:\"" + spaceId + "\"";
Expand Down

0 comments on commit a0edc79

Please sign in to comment.