Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit ded85e3e authored by Francois Gannaz's avatar Francois Gannaz
Browse files

Add fetch\user.grantMissionsAccess()

parent 5104c13f
......@@ -34,6 +34,22 @@ class user extends moodlefetcher
return $this->fetch('GET', '/v1/mission')->data;
}
/**
* Give a teacher a tutor access to these LnB missions and classes, if it does not exist yet.
*
* @param array $teamconfigIds int[]
*/
public function grantMissionsAccess(array $teamconfigIds)
{
$this->fetch(
'POST',
"/v1/mission/grant",
[
'id_team_configs' => $teamconfigIds,
]
);
}
/**
* Use a LnB mission in a Moodle activity.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment