From c91cc5ef45df37ba5d2f8d2d38693b6bdb1b4199 Mon Sep 17 00:00:00 2001
From: skodak <skodak>
Date: Tue, 20 Oct 2009 23:00:57 +0000
Subject: [PATCH] MDL-12886 improved access exception

---
 webservice/lib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webservice/lib.php b/webservice/lib.php
index deb06577b2..f7780925b9 100644
--- a/webservice/lib.php
+++ b/webservice/lib.php
@@ -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
-- 
2.39.5