Skip to content

Commit

Permalink
remove override check_access
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraeth1800 committed Aug 20, 2021
1 parent 22bfcd0 commit ccde300
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions ckanext/benap/logic/auth/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ def user_list(context, data_dict=None):
"""Check whether access to the user list is authorised. Restricted to admins only."""
return {'success': False}


def organization_show(context, data_dict=None):
"""Allow everyone to access organization data (for translated organization data helper)"""
return {'success': True}

3 changes: 1 addition & 2 deletions ckanext/benap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
forum_url, filter_default_tags_only, getTranslatedVideoUrl, show_element, get_organization_by_id
from ckanext.benap.util.forms import map_for_form_select
from ckanext.benap.validators import phone_number_validator, countries_covered_belgium, is_after_start, https_validator
from ckanext.benap.logic.auth.get import user_list, organization_show
from ckanext.benap.logic.auth.get import user_list


class BenapPlugin(plugins.SingletonPlugin, toolkit.DefaultDatasetForm, DefaultTranslation):
Expand Down Expand Up @@ -72,6 +72,5 @@ def get_validators(self):
def get_auth_functions(self):
return {
'user_list': user_list,
'organization_show': organization_show,
}

0 comments on commit ccde300

Please sign in to comment.