Skip to content

Commit

Permalink
Fix a bug in founder#dropped_out? methord
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhish committed Dec 12, 2019
1 parent 04b9c4d commit fb7c944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/founder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def can_connect?
end

def dropped_out?
startup.exited_at.nil?
startup.exited_at?
end

def pending_connect_request_for?(faculty)
Expand Down
2 changes: 1 addition & 1 deletion app/policies/course_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def curriculum?
return false if founder.blank?

# Dropped out students cannot access course dashboard.
founder.dropped_out?
!founder.dropped_out?
end

def leaderboard?
Expand Down

0 comments on commit fb7c944

Please sign in to comment.