Explorar o código

[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 %!s(int64=17) %!d(string=hai) anos
pai
achega
28aa24be8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ?