Limiting the amount of daily course completions

Limiting the amount of daily course completions

by Jakob Engelhardt -
Number of replies: 0

Hi,

I want to limit the amount of courses a user can complete in a 24-hour period.
The amount of daily available courses depends on a custom value assigned to each course, defined via a custom profile field.

However, the course_completion event is triggered via cron. Is there a possibility to get the course_completion state without the cron, so I don't have to run the cron twice since I have to check the custom value too?

Average of ratings: -