Skip to content

Commit

Permalink
NOJIRA
Browse files Browse the repository at this point in the history
removed comment
  • Loading branch information
chasegawa committed Aug 9, 2021
1 parent 13dd529 commit b546768
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ public EntityDescriptorRepresentation createRepresentationFromDescriptor(org.ope
@Override
public void delete(String resourceId) throws ForbiddenException, EntityNotFoundException {
EntityDescriptor ed = getEntityDescriptorByResourceId(resourceId);
// @TODO - need authorization check for group? The controller probably is only allowing admins to delete
if (ed.isServiceEnabled()) {
throw new ForbiddenException("Deleting an enabled Metadata Source is not allowed. Disable the source and try again.");
}
Expand Down

0 comments on commit b546768

Please sign in to comment.