blob: 694bc096b5af07dbcc36e577f8306b23c03c3399 (
plain) (
tree)
|
|
# frozen_string_literal: true
class ReportNotePolicy < ApplicationPolicy
def create?
staff?
end
def destroy?
admin? || owner?
end
private
def owner?
record.account_id == current_account&.id
end
end
|