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

98724: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud)
      98622: Merged DEV to 5.0.N (5.0.2)
         98356: MNT-13436 : Other special authorities related to MNT-13427
            - added check for special authorities


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@98815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-03-06 08:06:16 +00:00
parent 935887658c
commit a3bb705d83

View File

@@ -60,7 +60,14 @@ function main()
// collect values for the permission setting
var authority = perm.getString("authority");
if (authority != "GROUP_EVERYONE" && people.getGroup(authority) == null && people.getPerson(authority) == null)
var isSpecialAutority = false;
if (authority == "GROUP_EVERYONE" || authority == "ROLE_ADMINISTRATOR" || authority == "ROLE_GUEST" || authority == "ROLE_OWNER")
{
isSpecialAutority = true;
}
if (!isSpecialAutority && people.getGroup(authority) == null && people.getPerson(authority) == null)
{
// ACE-3280: silently not add non-existent users
return;