Skip to content

Commit

Permalink
essay able for add
Browse files Browse the repository at this point in the history
  • Loading branch information
irivertime committed Mar 3, 2015
1 parent 7ca04b0 commit d66a24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/essay/posts/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- if !current_user.have_essay_for_stage(@project, @stage) and current_stage?(@stage.to_i) or @project.demo?
- if !current_user.have_essay_for_stage(@project, @stage) or @project.demo?
.pull-right
= link_to t('show.essay.new_essay'), new_essay_post_path(@project, @stage), id: 'new_essay', class: 'btn btn-lg btn-success'
%h3(class="#{color_stage(@stage.to_i)}")
Expand Down

0 comments on commit d66a24b

Please sign in to comment.