20200413160113_issue_2990_delete_timeframe.rb 629 B

123456789101112131415161718
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue2990DeleteTimeframe < ActiveRecord::Migration[5.2]
  3. def change
  4. Setting.create_if_not_exists(
  5. title: 'Define timeframe where a own created note can get deleted.',
  6. name: 'ui_ticket_zoom_article_delete_timeframe',
  7. area: 'UI::TicketZoomArticle',
  8. description: "Set timeframe in seconds. If it's set to 0 you can delete notes without time limits",
  9. options: {},
  10. state: 600,
  11. preferences: {
  12. permission: ['admin.ui']
  13. },
  14. frontend: true
  15. )
  16. end
  17. end