|
35 | 35 | import com.liferay.portal.kernel.model.User;
|
36 | 36 | import com.liferay.portal.kernel.model.VirtualLayoutConstants;
|
37 | 37 | import com.liferay.portal.kernel.portlet.LayoutFriendlyURLSeparatorComposite;
|
38 |
| -import com.liferay.portal.kernel.security.permission.ActionKeys; |
39 |
| -import com.liferay.portal.kernel.security.permission.PermissionCheckerFactoryUtil; |
40 | 38 | import com.liferay.portal.kernel.service.GroupLocalService;
|
41 | 39 | import com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService;
|
42 | 40 | import com.liferay.portal.kernel.service.LayoutLocalService;
|
43 | 41 | import com.liferay.portal.kernel.service.ServiceContext;
|
44 | 42 | import com.liferay.portal.kernel.service.ServiceContextFactory;
|
45 | 43 | import com.liferay.portal.kernel.service.ServiceContextThreadLocal;
|
46 | 44 | import com.liferay.portal.kernel.service.UserLocalService;
|
47 |
| -import com.liferay.portal.kernel.service.permission.GroupPermissionUtil; |
48 | 45 | import com.liferay.portal.kernel.servlet.InactiveRequestHandler;
|
49 | 46 | import com.liferay.portal.kernel.servlet.PortalMessages;
|
50 | 47 | import com.liferay.portal.kernel.servlet.ServletContextPool;
|
@@ -118,15 +115,6 @@ public Redirect getRedirect(
|
118 | 115 |
|
119 | 116 | Group group = _getGroup(path, groupFriendlyURL, companyId);
|
120 | 117 |
|
121 |
| - if (group.isUser() && |
122 |
| - !GroupPermissionUtil.contains( |
123 |
| - PermissionCheckerFactoryUtil.create( |
124 |
| - portal.getUser(httpServletRequest)), |
125 |
| - group, ActionKeys.VIEW)) { |
126 |
| - |
127 |
| - throw new NoSuchGroupException(); |
128 |
| - } |
129 |
| - |
130 | 118 | Locale locale = portal.getLocale(httpServletRequest, null, false);
|
131 | 119 |
|
132 | 120 | SiteFriendlyURL alternativeSiteFriendlyURL =
|
|
0 commit comments