Browse Source

[svn r12977] when a user was student in a course (whithout a session) and coach in this same course (whithin a session), the student status was taken. Now it's the contrary

Eric Marguin 17 years ago
parent
commit
28aa24be8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/local.inc.php

+ 1 - 1
main/inc/local.inc.php

@@ -647,7 +647,7 @@ if ((isset($uidReset) && $uidReset) || (isset($cidReset) && $cidReset)) // sessi
 				
 	            api_session_register('_courseUser');
 	        }
-	        else // this user has no status related to this course
+	        if (!$is_courseAdmin) // this user has no status related to this course
 		        {
 		    	// is it the session coach ?