]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15352: check that the user exists on the remote server and that is allowed to...
authorjerome <jerome>
Tue, 28 Oct 2008 04:03:12 +0000 (04:03 +0000)
committerjerome <jerome>
Tue, 28 Oct 2008 04:03:12 +0000 (04:03 +0000)
lang/en_utf8/repository_remotemoodle.php
repository/remotemoodle/repository.class.php

index 4fd58aa621d12be0b24fd8633194e4bc39ecbbbe..4321b42286556619207ffadc5b4c8f4130347ae2 100644 (file)
@@ -10,4 +10,5 @@ $string['remoterep_name'] = 'Remote Moodle Repository';
 $string['remoterep_description'] = 'Allow the service to be discovered<br><br>';
 $string['connectionfailure'] = 'Failed to retrieve file listing - The host moodle has either a version older than 2.0, either its Moodle Remote Repository service hasn\'t been activated';
 $string['failtoretrievelist'] = 'List could not be retrieved or is empty';
-$string['usernotfound'] = 'The user $a is not registered into the remote Moodle';
\ No newline at end of file
+$string['usernotfound'] = 'The user $a is not registered into the remote Moodle';
+$string['usercannotaccess'] = 'You ($a) cannot access to this file';
\ No newline at end of file
index 0b01b50c9c34b61ed52e8b6e72112dbb37801fe7..4d3f19feb9f16b8d454c96f91deb36c76aecf139 100644 (file)
@@ -61,7 +61,6 @@ class repository_remotemoodle extends repository {
              
         $browser = get_file_browser();
         $fileinfo = $browser->get_file_info(get_context_instance_by_id($contextid), $filearea, $itemid, $filepath, $filename);
-        $this->log($fileinfo);
         if (empty($fileinfo)) {
             exit(mnet_server_fault(9016, get_string('usercannotaccess', 'repository_remotemoodle',  $file)));
         }