Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegawa committed Nov 16, 2022
2 parents bdd4a1b + edadb5e commit b23689b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import javax.annotation.Nullable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
Expand Down Expand Up @@ -50,6 +51,7 @@ public class EntityDescriptor extends AbstractDescriptor implements org.opensaml

@Getter
@Setter
@Column(columnDefinition = "boolean default true") // this is true for migration reasons, but the java will default false
private boolean approved;

@OneToOne(cascade = CascadeType.ALL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public EntityDescriptorProjection(String entityID, String resourceId, String ser
this.serviceEnabled = serviceEnabled;
this.idOfOwner = idOfOwner;
this.protocol = edp == null ? EntityDescriptorProtocol.SAML : edp;
this.approved = approved;
this.approved = approved || serviceEnabled;
}

public String getEntityID() {
Expand All @@ -54,4 +54,4 @@ public String getEntityId() {
public EntityDescriptorProtocol getProtocol() {
return protocol == null ? EntityDescriptorProtocol.SAML : protocol;
}
}
}

0 comments on commit b23689b

Please sign in to comment.