mod/navbar/set/abstract/account_dropdown.rb in card-1.99.1 vs mod/navbar/set/abstract/account_dropdown.rb in card-1.99.2

- old
+ new

@@ -6,12 +6,16 @@ def account_dropdown &render_role_item split_button link_to_mycard, nil do [ link_to_card([Auth.current, :account_settings], "Account"), - (["Roles", role_items(&render_role_item)] unless Auth.no_special_roles?) + (["Roles", role_items(&render_role_item)] if special_roles?) ] end + end + + def special_roles? + Auth.current_roles.size > 1 end def role_items Auth.current_roles.map do |role_name| yield role_name