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

99118: Fix for ACE-3702
    - Admin console handle when license is "invalid" but still running Enterprise - show correct summary page


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@99184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-03-10 22:38:04 +00:00
parent ca93afd004
commit 642c44789f

View File

@@ -81,8 +81,7 @@ var Admin = Admin || {};
}; };
// process family metadata // process family metadata
var isCommunity = (utils.getRestrictions().licenseMode == "UNKNOWN"), var index = -1,
index = -1,
addTool = true, addTool = true,
familys = tool.familys.toArray(); familys = tool.familys.toArray();
for (var f=0; f<familys.length; f++) for (var f=0; f<familys.length; f++)
@@ -96,7 +95,7 @@ var Admin = Admin || {};
// find community only pages // find community only pages
if (familys[f] == "AdminConsole:Edition:Community") if (familys[f] == "AdminConsole:Edition:Community")
{ {
addTool = isCommunity; addTool = !Admin.enterprise && (utils.getRestrictions().licenseMode == "UNKNOWN");
} }
} }