Fixes #3732 - admin.core_workflow permission is missing.

This commit is contained in:
Rolf Schmidt 2021-09-10 10:23:50 +01:00 committed by Thorsten Eckel
parent f32b184f7b
commit f1cbb9a0c7
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class Issue3732AddCoreWorkflowPermission < ActiveRecord::Migration[6.0]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Permission.create_if_not_exists(
name: 'admin.core_workflow',
note: 'Manage %s',
preferences: {
translations: ['Core Workflow']
},
)
end
end

View file

@ -271,6 +271,13 @@ Permission.create_if_not_exists(
translations: ['Webhooks']
},
)
Permission.create_if_not_exists(
name: 'admin.core_workflow',
note: 'Manage %s',
preferences: {
translations: ['Core Workflow']
},
)
Permission.create_if_not_exists(
name: 'user_preferences',
note: 'User Preferences',