Skip to content

Commit

Permalink
Maintenance: Clean up unused Checklist code
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas committed Nov 7, 2024
1 parent fbd3890 commit 1dcc2a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
2 changes: 2 additions & 0 deletions app/controllers/tickets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def create

# Prevent direct access to checklist via API
# Otherwise users may get unauthorized access to checklists of other tickets
params.delete(:checklist)
params.delete(:checklist_id)

clean_params = Ticket.association_name_to_id_convert(params)
Expand Down Expand Up @@ -249,6 +250,7 @@ def update

# Prevent direct access to checklist via API
# Otherwise users may get unauthorized access to checklists of other tickets
params.delete(:checklist)
params.delete(:checklist_id)

clean_params = Ticket.association_name_to_id_convert(params)
Expand Down
33 changes: 0 additions & 33 deletions app/policies/controllers/ticket_checklist_controller_policy.rb

This file was deleted.

0 comments on commit 1dcc2a1

Please sign in to comment.