I have created a role based on the managers role. This role has the ability to enroll student using cohort sync, however it is now giving the error message below, all cohorts are set up at the category level. There are no site-wide cohorts. I checked each one of the files listed in the error message and the only anomaly found was in the line 244 of /lib/externallib.php: call to core_cohort_external::search_cohorts() my line 244 reads /lib/externallib.php: $result = call_user_func_array($callable, $params); Also a search of this file does not find any reference to cohorts, which has me baffled as to where the error message is derived from.
This has worked before and I have not done any updates. Version 3.6
Sorry, but you do not currently have permissions to do that (View site-wide cohorts)
Error code: nopermissions
* line 859 of /lib/accesslib.php: required_capability_exception thrown
* line 369 of /cohort/externallib.php: call to require_capability()
* line 244 of /lib/externallib.php: call to core_cohort_external::search_cohorts()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()