Skip to content

Commit

Permalink
#23474 include in 22.03.4
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Dec 7, 2022
1 parent 0b27c60 commit 7612edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion HOTFIX_TRACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ This maintenance release includes the following code fixes:
64. https://github.com/dotCMS/core/issues/22512 : Allow follow redirects to be configured #22512
65. https://github.com/dotCMS/core/issues/22522 : Remote URL access should be run in a threadpool #22522
66. https://github.com/dotCMS/core/issues/23365 : Placeholder Issue #23365
67. https://github.com/dotCMS/core/issues/23401 : Insure zip file integrity #23401
67. https://github.com/dotCMS/core/issues/23401 : Insure zip file integrity #23401
68. https://github.com/dotCMS/core/issues/23474 : Switch Site endpoint is nor working if user doesn't have access to Sites Portlet #23474
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ public final Response switchSite(
.requestAndResponse(httpServletRequest, httpServletResponse)
.requiredBackendUser(true)
.rejectWhenNoUser(true)
.requiredPortlet("sites")
.init().getUser();
boolean switchDone = false;
Host hostFound = null;
Expand Down Expand Up @@ -276,7 +275,6 @@ public final Response switchSite(
.requestAndResponse(request, response)
.requiredBackendUser(true)
.rejectWhenNoUser(true)
.requiredPortlet("sites")
.init().getUser();

Logger.debug(this, "Switching to default host for user: " + user.getUserId());
Expand Down Expand Up @@ -317,7 +315,6 @@ public Response findAllSiteThumbnails(@Context final HttpServletRequest httpServ
.requestAndResponse(httpServletRequest, httpServletResponse)
.requiredBackendUser(true)
.rejectWhenNoUser(true)
.requiredPortlet("sites")
.init().getUser();

final ContentletAPI contentletAPI = APILocator.getContentletAPI();
Expand Down Expand Up @@ -686,7 +683,6 @@ public Response findHostByIdentifier(@Context final HttpServletRequest httpServl
.requestAndResponse(httpServletRequest, httpServletResponse)
.requiredBackendUser(true)
.rejectWhenNoUser(true)
.requiredPortlet("sites")
.init().getUser();

Logger.debug(this, ()-> "Finding the site: " + siteId);
Expand Down Expand Up @@ -727,7 +723,6 @@ public Response findHostByName(@Context final HttpServletRequest httpServletRequ
.requestAndResponse(httpServletRequest, httpServletResponse)
.requiredBackendUser(true)
.rejectWhenNoUser(true)
.requiredPortlet("sites")
.init().getUser();

final String hostname = searchSiteByNameForm.getSiteName();
Expand Down

0 comments on commit 7612edd

Please sign in to comment.