Skip to content

Commit

Permalink
fixed #163 - all spaces doesn't show any questions
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed May 18, 2020
1 parent bfa2df9 commit 0b73083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/erudika/scoold/utils/ScooldUtils.java
Expand Up @@ -944,7 +944,7 @@ public void storeSpaceIdInCookie(String space, HttpServletRequest req, HttpServl
}

public String verifyExistingSpace(Profile authUser, String space) {
if (!isDefaultSpace(space) && pc.read(getSpaceId(space)) == null) {
if (!isDefaultSpace(space) && !isAllSpaces(space) && pc.read(getSpaceId(space)) == null) {
if (authUser != null) {
authUser.removeSpace(space);
pc.update(authUser);
Expand Down

0 comments on commit 0b73083

Please sign in to comment.