Added missing admin.time_accounting permission entry.

This commit is contained in:
Martin Edenhofer 2018-09-13 12:28:58 +02:00 committed by Martin Edenhofer
parent 46db068a65
commit 769fb19064
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,17 @@
class PermissionAddTimeAccounting < ActiveRecord::Migration[5.1]
def up
# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')
Permission.create_if_not_exists(
name: 'admin.time_accounting',
note: 'Manage %s',
preferences: {
translations: ['Time Accounting']
},
)
end
end

View file

@ -45,6 +45,13 @@ Permission.create_if_not_exists(
translations: ['Text Modules']
},
)
Permission.create_if_not_exists(
name: 'admin.time_accounting',
note: 'Manage %s',
preferences: {
translations: ['Time Accounting']
},
)
Permission.create_if_not_exists(
name: 'admin.macro',
note: 'Manage %s',