Skip to content

Commit

Permalink
LPS-193573 Allow delete system fields only by allowed bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielwas committed Aug 23, 2023
1 parent 765886e commit f47f5fd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -982,9 +982,8 @@ else if (!deleteRelationshipObjectField) {
throw new RequiredObjectFieldException();
}

if (FeatureFlagManagerUtil.isEnabled("LPS-190890") &&
objectDefinition.isApproved() && objectDefinition.isModifiable() &&
objectDefinition.isSystem()) {
if (objectField.isSystem() && objectDefinition.isModifiable() &&
!SystemUtil.allowManageSystemEntities()) {

throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit f47f5fd

Please sign in to comment.