Moodle availability plugin which lets users restrict resources and activities with dedication time
This plugin depends upon the data calculated by block_dedication. So make sure to install block_dedication plugin( https://moodle.org/plugins/block_dedication) and its data is calculated for some courses and users.
- restrict the activities and resources with dedication time (time spent in the course).
- restiction can be applied in either in hours or minutes.
- Added availability message improvements as suggested by Dan Marsden
- Download the latest block_dedication plugin from git repository (https://github.com/catalyst/moodle-block_dedication) or moodle plugin directory (https://moodle.org/plugins/block_dedication) and unzip the contents into the /blocks/dedication directory or upload it from the install plugin admin interface.
- Download the latest availability_dedication plugin from git repository or moodle plugin directory and unzip the contents into the /availability/condition/ directory. Or upload it from the install plugin admin interface.
- Create a course and add some activities.
- Access the course from student login and spend some time (around 5 to 10 minutes) in the course.
- Run the Collect data for block dedication scheduled task manually or automatically from admin account.
- Create an activity with restrict access set to dedication time with xx hours or xx minutes from teacher or admin account.
- Login a student account and check the activity restriction on course home page.

If you encounter issues or bugs, please open an issue in the official GitHub repository: GitHub Issues
Author: Santosh Nagargoje
Web profile: https://santoshnagargoje.in/