Commit 42203d9a authored by Ryan Herbert's avatar Ryan Herbert
Browse files add new group retrieval method

This one is aimed at the tag auto-completion system. Retrieves all
group memberships for this user as well as their parent groups
parent c8cc6f8f
......@@ -37,3 +37,11 @@ def get_default_creation_group(auth):
groups = [{'id': group_dict[key]['id'], 'name': group_dict[key]['name']} for key in group_dict]
return (groups, max_group)
def get_involved_groups():
Returns all the groups that are related to the user. This includes all groups
that the user is a member of, as well as any of their parents
group_ids = [int( for g in get_group_list()]
parent_group_ids = [int( for f in auth.get_user_group_parents()]
return group_ids + parent_group_ids
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment