Skip to content

Commit

Permalink
Fix issue with MOODLE_402+ and missing get_short_name method
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentdavid committed Jan 18, 2025
1 parent 70c1c8c commit c86b4cd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions classes/context_db_by_role.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ public static function instance($roleid, $strictness = MUST_EXIST) {

return false;
}
/**
* Returns short context name.
*
* @since Moodle 4.2
*
* @return string
*/
public static function get_short_name(): string {
return 'db_by_role';
}

/**
* Create missing context instances at user context level
Expand Down

0 comments on commit c86b4cd

Please sign in to comment.