mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
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:
@@ -60,7 +60,14 @@ function main()
|
|||||||
|
|
||||||
// collect values for the permission setting
|
// collect values for the permission setting
|
||||||
var authority = perm.getString("authority");
|
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
|
// ACE-3280: silently not add non-existent users
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user