diff --git a/app/api/mobile/entities/project_package.rb b/app/api/mobile/entities/project_package.rb index 85f8bb14..7313abfc 100644 --- a/app/api/mobile/entities/project_package.rb +++ b/app/api/mobile/entities/project_package.rb @@ -12,6 +12,8 @@ module Mobile expose :bidding_users_count, if: { type: :index } expose :min_price expose :max_price + expose :contact_name, if: ->(package, opts){ opts[:user].id == package.creator_id || opts[:user].admin? || opts[:user].business? } + expose :contact_phone, if: ->(package, opts){ opts[:user].id == package.creator_id || opts[:user].admin? || opts[:user].business? } expose :deadline_at do |package, _| package.deadline_at.try(:utc).try(:iso8601)