File size: 415 Bytes
9bbce43
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
ROLE_COLLECTION_ACCESS = {
    "operations": ["applications", "participants", "assignedInterventions", "kpiEntries"],
    "director": ["participants", "interventionsDatabase", "kpiEntries"],
    "consultant": ["assignedInterventions", "feedbacks"],
    "incubatee": ["applications", "assignedInterventions", "feedbacks"]
}

def get_allowed_collections(role):
    return ROLE_COLLECTION_ACCESS.get(role.lower(), [])