checklists_controller.rb 611 B

12345678910111213141516171819202122232425
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class ChecklistsController < ApplicationController
  3. prepend_before_action :authenticate_and_authorize!
  4. def index
  5. model_index_render(Checklist.for_user(current_user), params)
  6. end
  7. def show
  8. model_show_render(Checklist.for_user(current_user), params)
  9. end
  10. def create
  11. model_create_render(Checklist.for_user(current_user), params)
  12. end
  13. def update
  14. model_update_render(Checklist.for_user(current_user), params)
  15. end
  16. def destroy
  17. model_destroy_render(Checklist.for_user(current_user), params)
  18. end
  19. end