Skip to content

Commit

Permalink
LPS-83488 Do not fetch on initial creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Preston-Crary committed Jul 16, 2018
1 parent fc2babb commit 8048868
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void addModelResourcePermissions(
doUpdateResourcePermission(
companyId, name, ResourceConstants.SCOPE_INDIVIDUAL, primKey,
userId, ownerRole.getRoleId(), ownerPermissions,
ResourcePermissionConstants.OPERATOR_SET, true);
ResourcePermissionConstants.OPERATOR_SET, false);

if (modelPermissions != null) {
for (String roleName : modelPermissions.getRoleNames()) {
Expand All @@ -185,7 +185,8 @@ public void addModelResourcePermissions(
companyId, name, ResourceConstants.SCOPE_INDIVIDUAL,
primKey, 0, role.getRoleId(),
modelPermissions.getActionIds(roleName),
ResourcePermissionConstants.OPERATOR_SET, true);
ResourcePermissionConstants.OPERATOR_SET,
ownerRole.equals(role));
}
}
}
Expand Down

0 comments on commit 8048868

Please sign in to comment.