Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

81869: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud)
      81096: Merged DEV to V4.2-BUG-FIX (4.2.4)
         76610: MNT-11444: Locally set permissions on moderated public sites lead to unexpected results
            - Set siteId to the location to avoid redirection for a user, who is not a member of a site, but has access to a document.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@83195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Erik Winlof
2014-09-04 06:27:52 +00:00
parent 22be126dec
commit cf7f623db5

View File

@@ -93,6 +93,7 @@ var Common =
try
{
var location = null,
siteId = null,
qnamePaths,
displayPaths;
@@ -125,8 +126,8 @@ var Common =
}
else if ((qnamePaths.length > 4) && (qnamePaths[2] == TYPE_SITES))
{
var siteId = displayPaths[3],
siteNode = Common.getSite(siteId),
siteId = displayPaths[3];
var siteNode = Common.getSite(siteId),
containerId = qnamePaths[4].substr(3);
if (siteNode != null)
@@ -154,7 +155,7 @@ var Common =
{
location =
{
site: null,
site: siteId,
container: null,
path: "/" + displayPaths.slice(2, displayPaths.length).join("/"),
file: node.name