MDL-70781 course: setting for displaying completion conditions

Part of MDL-70817
This commit is contained in:
Simey Lameze
2021-04-02 21:53:20 +08:00
committed by Jun Pataleta
parent c0d0679c8a
commit a4f7c1d91f
7 changed files with 44 additions and 1 deletions
+9
View File
@@ -141,6 +141,15 @@ define('COMPLETION_AGGREGATION_ALL', 1);
*/
define('COMPLETION_AGGREGATION_ANY', 2);
/**
* Completion conditions will be displayed to user.
*/
define('COMPLETION_SHOW_CONDITIONS', 1);
/**
* Completion conditions will be hidden from user.
*/
define('COMPLETION_HIDE_CONDITIONS', 0);
/**
* Utility function for checking if the logged in user can view