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: project_post_policy.rb
    path of file: ./repos/catarse/app/policies
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ProjectPostPolicy < ApplicationPolicy
  self::Scope = Struct.new(:user, :scope) do
    de
    
  def permitted_attributes
    if done_by_owner_or_admin?
      %i[title comment_html exclusive user_id reward_id recipients]
    else
      []
    end
  end