Added missing admin.time_accounting permission entry.
This commit is contained in:
parent
46db068a65
commit
769fb19064
2 changed files with 24 additions and 0 deletions
17
db/migrate/20180913000002_permission_add_time_accounting.rb
Normal file
17
db/migrate/20180913000002_permission_add_time_accounting.rb
Normal 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
|
|
@ -45,6 +45,13 @@ Permission.create_if_not_exists(
|
||||||
translations: ['Text Modules']
|
translations: ['Text Modules']
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Permission.create_if_not_exists(
|
||||||
|
name: 'admin.time_accounting',
|
||||||
|
note: 'Manage %s',
|
||||||
|
preferences: {
|
||||||
|
translations: ['Time Accounting']
|
||||||
|
},
|
||||||
|
)
|
||||||
Permission.create_if_not_exists(
|
Permission.create_if_not_exists(
|
||||||
name: 'admin.macro',
|
name: 'admin.macro',
|
||||||
note: 'Manage %s',
|
note: 'Manage %s',
|
||||||
|
|
Loading…
Reference in a new issue