Feature #7200
Add session course coach status 2 constant
Start date:
03/07/2014
Due date:
% Done:
0%
Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?
Description
Currently, main_api.lib.php (or api.lib.php) contains:
// USER STATUS CONSTANTS /** global status of a user: student */ define('STUDENT', 5); /** global status of a user: course manager */ define('COURSEMANAGER', 1); define('TEACHER', 1); /** global status of a user: session admin */ define('SESSIONADMIN', 3); /** global status of a user: human ressource manager */ define('DRH', 4); /** global status of a user: human ressource manager */ define('ANONYMOUS', 6); /** global status of a user: low security, necessary for inserting data from * the teacher through HTMLPurifier */ define('COURSEMANAGERLOWSECURITY', 10); //Soft user status define('PLATFORM_ADMIN', 11); define('SESSION_COURSE_COACH', 12); define('SESSION_GENERAL_COACH', 13); define('COURSE_STUDENT', 14); //student subscribed in a course define('SESSION_STUDENT', 15); //student subscribed in a session course define('COURSE_TUTOR', 16); // student is tutor of a course (NOT in session) define('COURSE_MANAGER_ADMIN', 17); // Weird course manager ?!
However, status "2" is used in sessionmanager.lib.php and course.lib.php to define a "course tutor" status for the session_rel_course_rel_user.status field.
We need more clarity on this one: something like 'SESSION_COURSE_COACH', but it is already defined as "12", which confuses me... (not sure if we use SESSION_COURSE_COACH anywhere, but it would be just fine to redefine it as "2" in my view).