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.
Price option: Free

Supports Moodle 3.1 See all versions
Latest release: 9 years ago
Installations: 23
Downloads (last 90 days): 10

Frankenstyle name: tool_cohortautoroles
Administration tools

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Please report issues to the bug tracker (link above under useful links) - pull requests are also welcome - thanks!
Thanks Dan.
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!

Thanks Damyon,
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 Dan - I had a look at this plugin. The code seems very familiar smile. Even though it's based on my plugin the copyrights could be updated to you - we typically just assign them to the first person to commit each file. It would be nice to see some unit tests for this plugin and some more detail in the description (it took me reading the SQL to realise the mentor/manager/parent should also be in the cohort). While limiting this to system role assignments might be a nice feature - you can do that anyway by limiting the contexts that a custom role can be assigned - so I guess this gives you more flexibility.
Thanks for uploading it here - I'm sure it will be useful in some cases (especially mentors etc). My +1 to approve this plugin.