Skip to content

Commit

Permalink
Update _user.html.erb
Browse files Browse the repository at this point in the history
Let an user edit his own closed entries
  • Loading branch information
FunFR committed Dec 4, 2013
1 parent 1c58f7d commit 90fe886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/schedules/_user.html.erb
Expand Up @@ -48,7 +48,7 @@
entry = closed_entries[day.ajd]
end
%>
<% if (User.current == user) || User.current.admin? %>
<% if (User.current == @user) || User.current.admin? %>
<%= text_field "schedule_closed_entry", "hours", :size => 3, :name => entry.form_id, :id => entry.form_id, :value => entry.hours %>
<% else %>
<input type="text" size="3" disabled="disabled" value="<%= entry.hours %>" />
Expand Down

0 comments on commit 90fe886

Please sign in to comment.