Fixes #3732 - admin.core_workflow permission is missing.
This commit is contained in:
parent
f32b184f7b
commit
f1cbb9a0c7
2 changed files with 23 additions and 0 deletions
|
@ -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
|
|
@ -271,6 +271,13 @@ Permission.create_if_not_exists(
|
||||||
translations: ['Webhooks']
|
translations: ['Webhooks']
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Permission.create_if_not_exists(
|
||||||
|
name: 'admin.core_workflow',
|
||||||
|
note: 'Manage %s',
|
||||||
|
preferences: {
|
||||||
|
translations: ['Core Workflow']
|
||||||
|
},
|
||||||
|
)
|
||||||
Permission.create_if_not_exists(
|
Permission.create_if_not_exists(
|
||||||
name: 'user_preferences',
|
name: 'user_preferences',
|
||||||
note: 'User Preferences',
|
note: 'User Preferences',
|
||||||
|
|
Loading…
Reference in a new issue