diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-09-13 14:15:04 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-09-13 14:15:04 +0000 |
commit | 8b409dfe2ad634b84dcbcc54cdd668488318e79b (patch) | |
tree | c9a08f12450a3f1cb43e3f013b8bf208d8c08681 /lib/public/api.php | |
parent | b261c980c71112fb74541e4c93901ae12449b0d0 (diff) | |
download | nextcloud-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.php | 5 |
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); } } |