Files
edx-platform/common/djangoapps/entitlements/api.py
Albert (AJ) St. Aubin e91c837173 Added Python API and renamed rest_api folder
[MICROBA-281]
2020-06-04 12:44:06 -04:00

17 lines
429 B
Python

"""
Python APIs exposed by the Entitlements app to other in-process apps.
"""
from .models import CourseEntitlement as _CourseEntitlement
def get_active_entitlement_list_for_user(user):
"""
Arguments:
user (User): The user we are looking at the entitlements of.
Returns:
List: Active entitlements for the provided User.
"""
return _CourseEntitlement.get_active_entitlements_for_user(user)