Files
edx-platform/common/djangoapps/entitlements/api.py

17 lines
484 B
Python

""" # lint-amnesty, pylint: disable=django-not-configured
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)