2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2020-04-13 20:26:09 +00:00
|
|
|
class Issue2990DeleteTimeframe < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
Setting.create_if_not_exists(
|
|
|
|
title: 'Define timeframe where a own created note can get deleted.',
|
|
|
|
name: 'ui_ticket_zoom_article_delete_timeframe',
|
|
|
|
area: 'UI::TicketZoomArticle',
|
|
|
|
description: "Set timeframe in seconds. If it's set to 0 you can delete notes without time limits",
|
|
|
|
options: {},
|
|
|
|
state: 600,
|
|
|
|
preferences: {
|
|
|
|
permission: ['admin.ui']
|
|
|
|
},
|
|
|
|
frontend: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|