You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: user_policy.rb
    path of file: ./repos/OpenFarm/app/policies
    
    the code of the file until where you have to start completion: class UserPolicy < ApplicationPolicy
  attr_reader :current_user, :viewed_user

  def initialize(current_use
    
  def show?
    if @current_user
      if @current_user == @viewed_user || @current_user.admin
        true
      elsif @viewed_user.is_private?
        false
      else
        true
      end