This commit is contained in:
Alessio Fabrizio 2024-10-15 16:59:39 +02:00
parent 9d7464d2be
commit 84d46c2088
1 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,6 @@ import ckan.lib.helpers as h
import ckan.lib.search as search
from ckan.common import _
from collections import OrderedDict
from ckan.logic import NotAuthorized, NotFound
organization_vre = Blueprint("organization_vre", __name__)
@ -53,7 +52,7 @@ def index():
try:
logic.check_access('site_read', context)
logic.check_access('group_list', context)
except NotAuthorized:
except logic.NotAuthorized:
abort(403, _('Not authorized to see this page'))
# pass user info to context as needed to view private datasets of
# orgs correctly
@ -111,7 +110,7 @@ def read(id, limit=20):
data_dict['include_datasets'] = False
g.group_dict = logic.get_action('group_show')(context, data_dict)
g.group = context['group']
except (NotFound, NotAuthorized):
except (logic.NotFound, logic.NotAuthorized):
abort(404, _('Group not found'))
#read(id, limit, group_type)