# frozen_string_literal: true
class ListPolicy < ApplicationPolicy
def show?
record.public_list? || owned?
end
def update?
owned?
def destroy?
private
def owned?
user_signed_in? && record.account_id == current_account.id