Skip to content

Commit

Permalink
Merge pull request #846 from sparc-request/jjh-admin-edit
Browse files Browse the repository at this point in the history
Admin's should be able to edit un-editable SubServiceRequests [#136820303]
  • Loading branch information
jleonardw9 committed Dec 30, 2016
2 parents 243eba6 + 541ee4c commit 82bc21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/service_calendars_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def toggle_calendar_row
@service = @line_items_visit.line_item.service if params[:check]
@portal = params[:portal] == 'true'

return unless @line_items_visit.sub_service_request.can_be_edited?
return unless @line_items_visit.sub_service_request.can_be_edited? || @portal

@line_items_visit.visits.each do |visit|
if params[:check]
Expand Down

0 comments on commit 82bc21d

Please sign in to comment.