mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
add empty line after guard clause to TimelogController
git-svn-id: http://svn.redmine.org/redmine/trunk@20120 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
753afc2e2b
commit
8249bdbe15
@ -278,6 +278,7 @@ class TimelogController < ApplicationController
|
||||
|
||||
raise ActiveRecord::RecordNotFound if @time_entries.empty?
|
||||
raise Unauthorized unless @time_entries.all? {|t| t.editable_by?(User.current)}
|
||||
|
||||
@projects = @time_entries.collect(&:project).compact.uniq
|
||||
@project = @projects.first if @projects.size == 1
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user