fix: fix broken permission directives in web api startup

This commit is contained in:
Lance Edgar 2024-08-18 10:20:09 -05:00
parent f4c8176d83
commit 5e82fe3946

View file

@ -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