Cohort auto roles management
Maintained by
Dan Marsden, Catalyst IT
This plugin is based on the core tool_cohortroles plugin and allows the selection of a role rather than an individual to assign a manager/mentor/parent to a user.
If a user is assigned the selected role at any level - (site/course/category etc) they will be assigned as the mentor/manager/parent to all users within the cohorts selected they are also a member of.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
This was working beautifully on an older version
I upgraded to 3.7 and now this.
I see that the same problems were addressed for the original plugin that it was based on.
This happens after assigning roles when coming back to admin/tool/cohortautoroles/index.php? (instead of the table of role assignments)
Class 'tool_lp\external\cohort_summary_exporter' has been renamed for the autoloader and is now deprecated. Please use 'core_cohort\external\cohort_summary_exporter' instead.
line 122 of /lib/classes/component.php: call to debugging()
line ? of unknownfile: call to core_component::classloader()
line 109 of /admin/tool/cohortautoroles/classes/output/cohort_role_assignments_table.php: call to spl_autoload_call()
line 837 of /lib/tablelib.php: call to tool_cohortautoroles\output\cohort_role_assignments_table->col_cohortname()
line 1533 of /lib/tablelib.php: call to flexible_table->format_row()
line 1656 of /lib/tablelib.php: call to table_sql->build_table()
line 89 of /admin/tool/cohortautoroles/index.php: call to table_sql->out()
Coding error detected, it must be fixed by a programmer: Unexpected property theme
More information about this error
×Debug info:
Error code: codingerror
×Stack trace:
line 145 of /lib/classes/external/exporter.php: coding_exception thrown
line 110 of /admin/tool/cohortautoroles/classes/output/cohort_role_assignments_table.php: call to core\external\exporter->export()
line 837 of /lib/tablelib.php: call to tool_cohortautoroles\output\cohort_role_assignments_table->col_cohortname()
line 1533 of /lib/tablelib.php: call to flexible_table->format_row()
line 1656 of /lib/tablelib.php: call to table_sql->build_table()
line 89 of /admin/tool/cohortautoroles/index.php: call to table_sql->out()
Thanks Dan for sharing the plugin with the community, and thanks Damyon for the approval check. My apologies for the delay with the formal approval. I am happy to press the button now. You are cleared to land, welcome to the Plugins directory!
I had updated the copyright in the version.php but didn't touch the other files as they are really just copies of your files with some pretty minor modifications.
Thanks for uploading it here - I'm sure it will be useful in some cases (especially mentors etc). My +1 to approve this plugin.
https://integration.moodle.org/job/Precheck%20remote%20branch/28264/artifact/work/smurf.html