Explorar el Código

[svn r13475] fix a bug when importing hotpotatoes logged as an admin

Eric Marguin hace 17 años
padre
commit
9a4b928211
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      main/exercice/hotpotatoes.php

+ 2 - 2
main/exercice/hotpotatoes.php

@@ -22,7 +22,7 @@
 *	Code for Hotpotatoes integration.
 *	@package dokeos.exercise
 * 	@author Istvan Mandak
-* 	@version $Id: hotpotatoes.php 13384 2007-10-04 09:08:37Z elixir_inter $
+* 	@version $Id: hotpotatoes.php 13475 2007-10-12 11:09:06Z elixir_inter $
 */
 
 
@@ -42,7 +42,7 @@ $fld					= (!empty($_POST['fld'])?$_POST['fld']:null);
 include_once(api_get_path(LIBRARY_PATH).'fileUpload.lib.php');
 include_once(api_get_path(LIBRARY_PATH).'document.lib.php');
 $interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices'));
-$is_allowedToEdit=(!empty($is_courseAdmin)?$is_courseAdmin:false);
+$is_allowedToEdit=api_is_allowed_to_edit();
 
 $dbTable				= Database::get_course_table(TABLE_DOCUMENT);
 $baseServDir = $_configuration['root_sys'];