Project

General

Profile

Feature #3848 » 0002-Access-params-time_entry-only-if-editing-a-time-entr.patch

Cedric VINCENT, 2009-09-21 16:48

View differences:

app/controllers/issues_controller.rb
end
if request.post?
if User.current.allowed_to?(:edit_time_entries, @project)
if User.current.allowed_to?(:edit_time_entries, @project) and params[:time_entry]
user = User.find(Hash[params[:time_entry].to_a]["user_id"].to_i)
else
# TODO: Maybe I should throw an exception if the current user
(4-4/21)