-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
2.3
-
None
-
MOODLE_23_STABLE
i've been trying to use 'core_course_delete_courses' and am getting errors about 'Not enrolled'
{ 'errorcode' => 'requireloginerror', 'exception' => 'require_login_exception', 'debuginfo' => 'Not enrolled', 'message' => 'Course or activity not accessible.' };
the courses i am trying to delete have no one enrolled in them. in fact, i am doing testing with moodle and have loaded very few users, but courses and categories with webservices. all of them ok.
during my dev, i wanted to tear things down and try again, so i thought i'd use the core_course_delete_courses webservice, since courses and categories were created that way. but i kept getting the error.
the wstoken i used was accepted just fine for calls to core_course_create_courses or categories.
i even tried sending the web services user's login credentials in URL http://username:password@host.tld/: FAIL! (which is good, i don't know if you support that construction, but you shouldn't)