Skip to content

Commit

Permalink
Fixes #4835 - Time accounting check crashing when no group is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikklein committed Sep 25, 2023
1 parent 7afd377 commit d797cc9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -18,7 +18,7 @@ def enabled?
end

def available_for_user?
selected.persisted? && TicketPolicy.new(current_user, selected).agent_update_access?
saved.persisted? && TicketPolicy.new(current_user, saved).agent_update_access?
end

def selector
Expand Down

0 comments on commit d797cc9

Please sign in to comment.