]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12886 improved access exception
authorskodak <skodak>
Tue, 20 Oct 2009 23:00:57 +0000 (23:00 +0000)
committerskodak <skodak>
Tue, 20 Oct 2009 23:00:57 +0000 (23:00 +0000)
webservice/lib.php

index deb06577b2f48e909b367c820f24f728992ad96c..f7780925b9e590ba435e2f6fec3e4e1e1806e872 100644 (file)
@@ -709,7 +709,7 @@ abstract class webservice_base_server implements webservice_server {
         }
         $rs->close();
         if (!$allowed) {
-            throw new invalid_parameter_exception('Access to external function not allowed');
+            throw new webservice_access_exception('Access to external function not allowed');
         }
 
         // we have all we need now