api: fix reference to AccessForbiddenError
This commit is contained in:
parent
4ec1a5ae09
commit
80f73eba24
|
@ -175,7 +175,7 @@ class ApiDirectory(Directory):
|
|||
get_response().set_content_type('application/json')
|
||||
if not (get_request().user and get_request().user.can_go_in_admin()) and \
|
||||
not get_user_from_api_query_string():
|
||||
raise errors.AccessForbiddenError()
|
||||
raise AccessForbiddenError()
|
||||
list_roles = []
|
||||
charset = get_publisher().site_charset
|
||||
for role in Role.select():
|
||||
|
|
Loading…
Reference in New Issue