Skip to content

Commit

Permalink
Merge branch 'canada-py3' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
JVickery-TBS committed May 13, 2024
2 parents 3ab1dce + 00e3ca9 commit ffb383e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ckanext/canada/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,13 @@ def group_list(context, data_dict):
return {'success': bool(context.get('user'))}


def group_show(context, data_dict):
return {'success': bool(context.get('user'))}


def organization_list(context, data_dict):
return {'success': context.get('user')}
return {'success': bool(context.get('user'))}


def organization_show(context, data_dict):
return {'success': bool(context.get('user'))}
2 changes: 2 additions & 0 deletions ckanext/canada/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ def get_actions(self):
def get_auth_functions(self):
return {
'group_list': auth.group_list,
'group_show': auth.group_show,
'organization_list': auth.organization_list,
'organization_show': auth.organization_show,
}

# IXloader
Expand Down

0 comments on commit ffb383e

Please sign in to comment.