Skip to content

Commit

Permalink
feat: ckanext.noanonaccess.allowed_blueprint will now replace list of…
Browse files Browse the repository at this point in the history
… allowed blueprints instead of extending it
  • Loading branch information
demenech authored Jan 2, 2024
1 parent acd0732 commit c965747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/noanonaccess/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _get_blueprint_and_view_function():
"ckanext.noanonaccess.allowed_blueprint", []
)
if allowed_blueprints_in_env:
allowed_blueprint.extend(allowed_blueprints_in_env.split(" "))
allowed_blueprint = allowed_blueprints_in_env.split(" ")

# allow if current blueprint is in allowed blueprint route
restricted_access = not (current_blueprint in allowed_blueprint)
Expand Down

0 comments on commit c965747

Please sign in to comment.