Browse Source

Fixes #3597 - Update description of the session timeout setting.

Rolf Schmidt 3 years ago
parent
commit
f1ade018fc
2 changed files with 10 additions and 1 deletions
  1. 9 0
      db/migrate/20210607000000_session_timeout_description.rb
  2. 1 1
      db/seeds/settings.rb

+ 9 - 0
db/migrate/20210607000000_session_timeout_description.rb

@@ -0,0 +1,9 @@
+# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
+
+class SessionTimeoutDescription < ActiveRecord::Migration[5.2]
+  def change
+    return if !Setting.exists?(name: 'system_init_done')
+
+    Setting.find_by(name: 'session_timeout').update(description: 'Defines the session timeout for inactivity of users. Based on the assigned permissions the highest timeout value will be used, otherwise the default.')
+  end
+end

+ 1 - 1
db/seeds/settings.rb

@@ -1049,7 +1049,7 @@ Setting.create_if_not_exists(
   title:       'Session Timeout',
   name:        'session_timeout',
   area:        'Security::Base',
-  description: 'Defines the session timeout for inactivity of users (in seconds).',
+  description: 'Defines the session timeout for inactivity of users. Based on the assigned permissions the highest timeout value will be used, otherwise the default.',
   options:     {
     form: [
       {