class PlacePolicy < ApplicationPolicy
  class Scope < Scope
    def resolve
      if user.admin?
        scope.all
      else
        scope.approved
      end
    end
  end

  def update?
    user.admin?
  end
end

class PlacePolicy < ApplicationPolicy
  class Scope < Scope
    def resolve
      if user&.admin?
        scope.all
      else
        scope.approved
      end
    end
  end

  def update?
    user.admin?
  end
end

Check if user is signed
Check if user is signed
