Commit cfda2c25 authored by mgabdev's avatar mgabdev

Updated promotions to not show if user is pro

parent 280895a0
......@@ -67,6 +67,12 @@ class InitialStateSerializer < ActiveModel::Serializer
end
def promotions
if object.current_account
if object.current_account.is_pro
return []
end
end
ActiveModelSerializers::SerializableResource.new(Promotion.active, each_serializer: REST::PromotionSerializer)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment