fix: fix broken permission directives in web api startup
This commit is contained in:
parent
f4c8176d83
commit
5e82fe3946
|
@ -85,8 +85,15 @@ def make_pyramid_config(settings):
|
|||
provider.configure_db_sessions(rattail_config, pyramid_config)
|
||||
|
||||
# add some permissions magic
|
||||
pyramid_config.add_directive('add_tailbone_permission_group', 'tailbone.auth.add_permission_group')
|
||||
pyramid_config.add_directive('add_tailbone_permission', 'tailbone.auth.add_permission')
|
||||
pyramid_config.add_directive('add_wutta_permission_group',
|
||||
'wuttaweb.auth.add_permission_group')
|
||||
pyramid_config.add_directive('add_wutta_permission',
|
||||
'wuttaweb.auth.add_permission')
|
||||
# TODO: deprecate / remove these
|
||||
pyramid_config.add_directive('add_tailbone_permission_group',
|
||||
'wuttaweb.auth.add_permission_group')
|
||||
pyramid_config.add_directive('add_tailbone_permission',
|
||||
'wuttaweb.auth.add_permission')
|
||||
|
||||
return pyramid_config
|
||||
|
||||
|
|
Loading…
Reference in a new issue