diff --git a/source/java/org/alfresco/web/bean/TrashcanItemDetailsDialog.java b/source/java/org/alfresco/web/bean/TrashcanItemDetailsDialog.java
index c1c3a489cd..67789a1507 100644
--- a/source/java/org/alfresco/web/bean/TrashcanItemDetailsDialog.java
+++ b/source/java/org/alfresco/web/bean/TrashcanItemDetailsDialog.java
@@ -27,6 +27,7 @@ package org.alfresco.web.bean;
import javax.faces.context.FacesContext;
import org.alfresco.service.cmr.repository.Path;
+import org.alfresco.service.cmr.security.PermissionService;
import org.alfresco.web.app.Application;
import org.alfresco.web.bean.repository.Node;
@@ -36,6 +37,8 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
private static final String MSG_DETAILS_OF = "details_of";
private static final String MSG_ORIGINAL_LOCATION = "original_location";
private static final String MSG_CLOSE = "close";
+
+ protected PermissionService permissionService;
@Override
protected String finishImpl(FacesContext context, String outcome) throws Exception
@@ -56,7 +59,7 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
Path path = (Path) property.getItem().getProperties().get("locationPath");
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_ORIGINAL_LOCATION) + ": " +
- path.toDisplayPath(nodeService);
+ path.toDisplayPath(nodeService, permissionService);
}
@Override
@@ -69,4 +72,9 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
{
return property.getItem();
}
+
+ public void setPermissionService(PermissionService permissionService)
+ {
+ this.permissionService = permissionService;
+ }
}
diff --git a/source/web/WEB-INF/faces-config-beans.xml b/source/web/WEB-INF/faces-config-beans.xml
index 1971d04fc1..5113f44528 100644
--- a/source/web/WEB-INF/faces-config-beans.xml
+++ b/source/web/WEB-INF/faces-config-beans.xml
@@ -4709,6 +4709,10 @@
dictionaryService
#{DictionaryService}
+
+ permissionService
+ #{PermissionService}
+
property
#{TrashcanDialogProperty}