Use boolean comparators where it makes sense
This commit is contained in:
parent
dbdc7ae4aa
commit
118886344a
28 changed files with 60 additions and 60 deletions
|
|
@ -2,7 +2,7 @@ module GroupOrderArticlesHelper
|
|||
|
||||
# return an edit field for a GroupOrderArticle result
|
||||
def group_order_article_edit_result(goa)
|
||||
unless goa.group_order.order.finished? and current_user.role_finance?
|
||||
unless goa.group_order.order.finished? && current_user.role_finance?
|
||||
goa.result
|
||||
else
|
||||
simple_form_for goa, remote: true, html: {'data-submit-onchange' => 'changed', class: 'delta-input'} do |f|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue