SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0a0eaad7 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix permissions

parent 3a639dc7
No related branches found
No related tags found
No related merge requests found
......@@ -57,3 +57,8 @@ class OrganizationLookup(LookupChannel):
def format_match(self, item):
'''(HTML) Format item for displaying in the dropdown.'''
return item.full_name_with_acronym
def check_auth(self, request):
"""Check if has organization administrative permissions."""
return request.user.has_perm('can_manage_organizations')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment