summaryrefslogtreecommitdiffstats
path: root/lib/public/api.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-09-13 14:15:04 +0000
committerTom Needham <needham.thomas@gmail.com>2012-09-13 14:15:04 +0000
commit8b409dfe2ad634b84dcbcc54cdd668488318e79b (patch)
treec9a08f12450a3f1cb43e3f013b8bf208d8c08681 /lib/public/api.php
parentb261c980c71112fb74541e4c93901ae12449b0d0 (diff)
downloadnextcloud-server-8b409dfe2ad634b84dcbcc54cdd668488318e79b.tar.gz
nextcloud-server-8b409dfe2ad634b84dcbcc54cdd668488318e79b.zip
API: Default to user authentication level
Diffstat (limited to 'lib/public/api.php')
-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);
}
}