mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 08:56:00 +02:00
Merge r24443 from trunk to 6.0-stable (#43830).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@24446 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -261,6 +261,8 @@ class TimelogController < ApplicationController
|
||||
|
||||
def find_time_entry
|
||||
@time_entry = TimeEntry.find(params[:id])
|
||||
raise Unauthorized unless @time_entry.visible?
|
||||
|
||||
@project = @time_entry.project
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
|
||||
Reference in New Issue
Block a user