Skip to content

Commit

Permalink
Use split interface on committed worktimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Dec 13, 2024
1 parent 2e10d9a commit 6c17d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ordertimes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OrdertimesController < WorktimesController
after_destroy :send_email_notification

def update
if entry.employee_id == @user.id
if entry.employee_id == @user.id && !entry.worktimes_committed?
super
else
build_splitable
Expand Down

0 comments on commit 6c17d88

Please sign in to comment.