Skip to content

Commit

Permalink
Maintenance: Fix typo in time accounting check.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfschmidt committed Aug 25, 2023
1 parent f0f6d3d commit 97b3d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/policies/ticket/time_accounting_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def ticket_update_access?
end

def matches_selector?
CoreWorkflow.matches_selector?(id: record.id, user: user, selector: Setting.get('time_accounting_selector')[:condition] || {})
CoreWorkflow.matches_selector?(id: record.ticket_id, user: user, selector: Setting.get('time_accounting_selector')[:condition] || {})
end
end

0 comments on commit 97b3d6a

Please sign in to comment.