module ProjectInheritedPolicyHelpers
  def create?
    done_by_owner_or_admin?
  end

  def destroy?
    create?
  end
end

module ProjectInheritedPolicyHelpers
  def create?
    done_by_owner_or_admin?
  end

  def destroy?
    create?
  end

  # This method is used in ApplicationPolicy#done_by_owner_or_admin?
  def is_owned_by?(user)
    user.present? && record.project.user == user
  end
end

Revert "Remove outdated comment and related code"
Revert "Remove outdated comment and related code"

This reverts commit 2aba0d62b480657bfbf2571f23b2c309d3e20566.
