I'm building a new availability condition module in which the requirement is to allow access to Activity2 if:
- Activity1 was completed within [n] days
- If Activity2 has been completed, continue to allow access indefinitely.
I'm trying to build item #2, and it seems I need the course-module id of the *current module* (the one the restriction is being applied to -- "Activity2" here). It's easy to get the id of the other one.
Can anyone give me a hint?