diff --git a/lib/galaxy/model/security.py b/lib/galaxy/model/security.py index 188cd926e97b..85fcb7be8532 100644 --- a/lib/galaxy/model/security.py +++ b/lib/galaxy/model/security.py @@ -159,7 +159,9 @@ def get_valid_roles(self, trans, item, query=None, page=None, page_limit=None, i is_public_item = False # Admins can always choose from all non-deleted roles if trans.user_is_admin or trans.app.config.expose_user_email: - roles = _get_valid_roles_exposed(trans.sa_session, search_query, trans.user_is_admin, limit, page, page_limit) + roles = _get_valid_roles_exposed( + trans.sa_session, search_query, trans.user_is_admin, limit, page, page_limit + ) # Non-admin and public item elif is_public_item: # Add the current user's private role