Author: mputz
Date: 2012-09-28 11:01:12 -0400 (Fri, 28 Sep 2012)
New Revision: 8854
Modified:
epp/portal/branches/EPP_5_2_2_GA_BZ851985/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIApplicationList.java
Log:
Revert changes to UIApplicationList.java
Modified:
epp/portal/branches/EPP_5_2_2_GA_BZ851985/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIApplicationList.java
===================================================================
---
epp/portal/branches/EPP_5_2_2_GA_BZ851985/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIApplicationList.java 2012-09-28
14:54:40 UTC (rev 8853)
+++
epp/portal/branches/EPP_5_2_2_GA_BZ851985/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIApplicationList.java 2012-09-28
15:01:12 UTC (rev 8854)
@@ -90,35 +90,8 @@
{
if (selectedCategory == null)
return null;
-
- String remoteUser = Util.getPortalRequestContext().getRemoteUser();
- if (remoteUser == null || remoteUser.equals(""))
- { return null; }
-
- ApplicationRegistryService service =
getApplicationComponent(ApplicationRegistryService.class);
- UserACL userACL =
Util.getUIPortalApplication().getApplicationComponent(UserACL.class);
-
- List<Application> allApps = selectedCategory.getApplications();
- List<Application> apps = new ArrayList<Application>();
+ List<Application> apps = selectedCategory.getApplications();
- for (Application app : allApps)
- {
- List<String> accessPermission = app.getAccessPermissions();
- if(accessPermission == null || accessPermission.size()==0)
- {
- continue;
- }
- accessCheck:
- for (String p : accessPermission)
- {
- if (userACL.hasPermission(p))
- {
- apps.add(app);
- }
- break accessCheck;
- }
- }
-
//Correct IconURL of Gadget
GadgetRegistryService gadgetService =
getApplicationComponent(GadgetRegistryService.class);
for (Application app : apps)
Show replies by date