Skip to content

Commit

Permalink
New Always True policy should not cause errors (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit authored Aug 5, 2024
1 parent 8028c11 commit 4f0ae71
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ please see [changelog_updates.md](docs/dev/changelog_updates.md).

#### Patch Changes
- Logginghouse-Client: Update logging-house-client extension to v1.1.0
- EDC Backend
- Fixed unrestricted policy wrongly displaying error

### Deployment Migration Notes
#### logging-house-client extension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ public void validateOtherPermissionFieldsUnset(Permission permission, MappingErr
return;
}

if (CollectionUtils.isEmpty(permission.getConstraints())) {
errors.add("Permission has no constraints.");
}

if (CollectionUtils.isNotEmpty(permission.getDuties())) {
errors.add("Permission has duties, which is currently unsupported.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ void testPermission_full() {

// assert
assertThat(errors.getErrors()).containsExactlyInAnyOrder(
"$: Permission has no constraints.",
"$: Permission has duties, which is currently unsupported.",
"$: Permission has an assigner, which is currently unsupported.",
"$: Permission has an assignee, which is currently unsupported.",
Expand Down

0 comments on commit 4f0ae71

Please sign in to comment.