Skip to content

Commit 8a6db70

Browse files
committed
Use isPrivate instead of isPublic for FeatureProposals
FeatureProposals public/private is more restrictive than simply "is visible to anomymous".
1 parent 74f0156 commit 8a6db70

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/edu/tamu/app/model/FeatureProposal.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class FeatureProposal extends AbstractIdea {
4747
private FeatureProposalState state;
4848

4949
@Column(nullable = false)
50-
private Boolean isPublic;
50+
private Boolean isPrivate;
5151

5252
public FeatureProposal() {
5353
super();
@@ -80,7 +80,7 @@ private void setup() {
8080
this.ideas = new ArrayList<Idea>();
8181
this.voters = new ArrayList<User>();
8282
this.state = FeatureProposalState.IN_PROGRESS;
83-
this.isPublic = true;
83+
this.isPrivate = true;
8484
}
8585

8686
public List<Idea> getIdeas() {
@@ -142,12 +142,12 @@ public void setState(FeatureProposalState state) {
142142
this.state = state;
143143
}
144144

145-
public Boolean getIsPublic() {
146-
return isPublic;
145+
public Boolean getIsPrivate() {
146+
return isPrivate;
147147
}
148148

149-
public void setIsPublic(Boolean isPublic) {
150-
this.isPublic = isPublic;
149+
public void setIsPrivate(Boolean isPrivate) {
150+
this.isPrivate = isPrivate;
151151
}
152152

153153
}

0 commit comments

Comments
 (0)