mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
16700: Fix for ETHREEOH-2509 - Leaving a private site breaks All Sites search for any term found in documents user created in that site. 16703: Fix for ETHREEOH-2775 - "Show all" fails for user if permissions of folder that item was deleted from are changed to exclude them. 16705: Fixes to Site Links dashlet component. 16707: Fixed ETHREEOH-619 "User who is already a member of the site (or invite is pending) can be added to the invite list" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -64,10 +64,11 @@ public class ManageReviewTaskDialog extends ManageTaskDialog
|
||||
protected String webapp;
|
||||
protected NodeRef webProjectRef;
|
||||
protected AVMBrowseBean avmBrowseBean;
|
||||
protected PermissionService permissionService;
|
||||
transient protected PermissionService permissionService;
|
||||
|
||||
private static final Log logger = LogFactory.getLog(ManageReviewTaskDialog.class);
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Implementation
|
||||
|
||||
@@ -200,13 +201,22 @@ public class ManageReviewTaskDialog extends ManageTaskDialog
|
||||
}
|
||||
|
||||
/**
|
||||
* @param permissionService PermissionService instance
|
||||
*/
|
||||
* @param permissionService The PermissionService to set.
|
||||
*/
|
||||
public void setPermissionService(PermissionService permissionService)
|
||||
{
|
||||
this.permissionService = permissionService;
|
||||
}
|
||||
|
||||
protected PermissionService getPermissionService()
|
||||
{
|
||||
if (permissionService == null)
|
||||
{
|
||||
permissionService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getPermissionService();
|
||||
}
|
||||
return permissionService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Determines if there are any test servers configured for the
|
||||
* web project this task belongs to
|
||||
@@ -226,7 +236,7 @@ public class ManageReviewTaskDialog extends ManageTaskDialog
|
||||
{
|
||||
result = Boolean.FALSE;
|
||||
|
||||
if (this.webProjectRef != null && permissionService.hasPermission(webProjectRef, PermissionService.READ_PROPERTIES).equals(AccessStatus.ALLOWED))
|
||||
if (this.webProjectRef != null && getPermissionService().hasPermission(webProjectRef, PermissionService.READ_PROPERTIES).equals(AccessStatus.ALLOWED))
|
||||
{
|
||||
List<NodeRef> testServers = DeploymentUtil.findTestServers(this.webProjectRef, false);
|
||||
if (testServers != null)
|
||||
|
Reference in New Issue
Block a user