Ensure recommendations are only shown when enabled
This commit is contained in:
@@ -210,7 +210,7 @@ class Proposal < ActiveRecord::Base
|
||||
|
||||
def self.proposals_orders(user)
|
||||
orders = %w{hot_score confidence_score created_at relevance archival_date}
|
||||
orders << "recommendations" if user&.recommended_proposals
|
||||
orders << "recommendations" if Setting['feature.user.recommendations_on_proposals'] && user&.recommended_proposals
|
||||
return orders
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user