Compare commits
	
		
			2 commits
		
	
	
		
			master
			...
			studyplan-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | fb7b4b0a5f | ||
|   | 0821c104b0 | 
					 2 changed files with 11 additions and 2 deletions
				
			
		|  | @ -74,6 +74,12 @@ class webservicehelper { | |||
|         // Initialize parent if needed.
 | ||||
|         if ($parent == null) { | ||||
|             $parent = \core_course_category::user_top(); | ||||
| 
 | ||||
|             if ($parent == null) { | ||||
|                 // If the parent is still null, we do not have a valid user top.
 | ||||
|                 return false; | ||||
|             } | ||||
| 
 | ||||
|             if (has_capability($capability, $parent->get_context())) { | ||||
|                 $list[] = $parent; | ||||
|             } | ||||
|  |  | |||
|  | @ -22,10 +22,13 @@ | |||
| defined('MOODLE_INTERNAL') || die(); | ||||
| 
 | ||||
| $plugin->component = 'local_treestudyplan';  // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494).
 | ||||
| $plugin->version = 2023090701;  // YYYYMMDDHH (year, month, day, iteration).
 | ||||
| /* IMPORTANT: For studyplan-10 branch, only increment the iteration part of the version below | ||||
|    since this is a bugfix branch | ||||
|  */ | ||||
| $plugin->version = 2023090702;  // YYYYMMDDHH (year, month, day, iteration).
 | ||||
| $plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11).
 | ||||
| 
 | ||||
| $plugin->release = "1.0.0"; | ||||
| $plugin->release = "1.0.1"; | ||||
| $plugin->maturity = MATURITY_STABLE; | ||||
| 
 | ||||
| // Supported from Moodle 3.11 to 4.1 (4.2 not yet tested).
 | ||||
|  |  | |||
		Reference in a new issue