I've run up against a mod_assign webservice issue.
We're wanting to use mod_assign_get_assignments() to to provide information (primarily the moodle IDs of the activities) to an external system so that system can then extract the grades (using mod_assign_get_grades()).
It would appear that the web service is using the enrol_* functions to determine if the calling user can access the course, which means that the web service user has to be enrolled in the class , rather than simply having a non-enrolled role assigned.
The reason that I don't want to enrol the web service user that we have is so that it doesn't appear in the participant list.
Ideas?
Also since I just need a list of ids to pass to assign_get_grades(), this seems to require that the calling user hold the mod/assign:grade grade capability, which kinda opens it up to doing things I'd *rather* it didn't. I think this goes back to the fact that too many capabilities are being used to pull double purposes. Ability to Grade should *not* have anything to do with being able to "view" grades.