Feature #3848 » 0002-Access-params-time_entry-only-if-editing-a-time-entr.patch
| 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
|
||