aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/public/api.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/api.php b/lib/public/api.php
index ed1f6ef237c..2821554229b 100644
--- a/lib/public/api.php
+++ b/lib/public/api.php
@@ -33,9 +33,10 @@ class API {
* @param string $url the url to match
* @param callable $action the function to run
* @param string $app the id of the app registering the call
+ * @param int $authlevel the level of authentication required for the call (See OC_API constants)
*/
- public static function register($method, $url, $action, $app){
- \OC_API::register($method, $url, $action, $app);
+ public static function register($method, $url, $action, $app, $authlevel = OC_API::USER_AUTH){
+ \OC_API::register($method, $url, $action, $app, $authlevel);
}
}