Removed acts-as-statemachine. Replaces User.find_ordergroup with ActiveRecord-Association 'has_one :ordergroup'.
This commit is contained in:
parent
ec402ffa7b
commit
e16bebd042
10 changed files with 33 additions and 47 deletions
|
|
@ -8,7 +8,7 @@
|
|||
%li= link_to _("Write message"), :controller => "messages", :action => "new"
|
||||
|
||||
// Orders
|
||||
- hasOrdergroup = !@current_user.find_ordergroup.nil?
|
||||
- hasOrdergroup = !@current_user.ordergroup.nil?
|
||||
- hasOrdersRole = @current_user.role_orders?
|
||||
- if hasOrdergroup || hasOrdersRole
|
||||
%li
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue