Skip to content

Commit

Permalink
Allow plugin-defined chained auth funcs to override core auth funcs
Browse files Browse the repository at this point in the history
original: d81233c
  • Loading branch information
alycejenni committed Nov 17, 2022
1 parent 0d714b2 commit 0131708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _build(self):

# Then overwrite them with any specific ones in the plugins:
resolved_auth_function_plugins = {}
fetched_auth_functions = {}
fetched_auth_functions = self._functions
chained_auth_functions = defaultdict(list)
for plugin in p.PluginImplementations(p.IAuthFunctions):
for name, auth_function in plugin.get_auth_functions().items():
Expand Down

0 comments on commit 0131708

Please sign in to comment.