Skip to content

Commit

Permalink
Merge pull request #144 from qld-gov-au/QOLDEV-933-purl-improvements
Browse files Browse the repository at this point in the history
[QOLDEV-933] drop redirection of private datasets
  • Loading branch information
ThrawnCA authored Sep 25, 2024
2 parents 838b25c + 132d155 commit a5498a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 96 deletions.
1 change: 1 addition & 0 deletions .docker/test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ ckan.auth.create_user_via_api = false
ckan.auth.create_user_via_web = true
ckan.auth.roles_that_cascade_to_sub_groups = admin
ckan.auth.public_user_details = True
ckan.auth.reveal_private_datasets = True

## Plugins Settings

Expand Down
6 changes: 1 addition & 5 deletions ckanext/qgov/common/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
from .user_creation import validators as user_creation_validators
from .user_creation.logic.actions import create as user_creation_create_actions

# workaround for https://github.com/ckan/ckan/issues/6678
from ckan.views import dataset as dataset_view, resource # noqa: F401

LOG = getLogger(__name__)

IP_ADDRESS = re.compile(r'^({0}[.]){{3}}{0}$'.format(r'[0-9]{1,3}'))
Expand Down Expand Up @@ -179,9 +176,8 @@ def get_blueprint(self):
user to the `came_from` URL if they are logged in.
:return:
"""
from .views import user, dataset, assets
from .views import user, assets
blueprints = user.get_blueprints()
blueprints.extend(dataset.get_blueprints())
blueprints.extend(assets.get_blueprints())
return blueprints

Expand Down
91 changes: 0 additions & 91 deletions ckanext/qgov/common/views/dataset.py

This file was deleted.

0 comments on commit a5498a4

Please sign in to comment.