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

fix user creation

parent 30f2ced7
......@@ -155,8 +155,9 @@ class mod_labnbook_session
ARRAY_FILTER_USE_KEY
);
/**
* @todo Add the boolean attribute 'teacher', true if user has editing rights in the current course.
* @todo Real attribute 'teacher', true if user has editing rights in the current course.
*/
$user['teacher'] = false;
$userId = $this->fetch('PUT', "/user/create", null, $user);
}
$SESSION->labnbook_userid = (int) $userId;
......
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