summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-21 19:36:20 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-21 19:36:20 +0100
commit9bab05fd45434a62c9c017d73d74c1fe1928ead0 (patch)
tree8ef2b1662295df1b4f9bc1fe4faa3bfea8109f65 /lib/public
parentc57c9eae769b70a1b273c564b76d57d95ebcf2ab (diff)
parent3b7fea25a30aa7dc590d90c5c91147ae9d94ba13 (diff)
downloadnextcloud-server-9bab05fd45434a62c9c017d73d74c1fe1928ead0.tar.gz
nextcloud-server-9bab05fd45434a62c9c017d73d74c1fe1928ead0.zip
Merge branch 'master' into fixing-gallery-password-protected-access-master
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/json.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/json.php b/lib/public/json.php
index 831e3ef1cf6..cd5d233ef90 100644
--- a/lib/public/json.php
+++ b/lib/public/json.php
@@ -167,7 +167,7 @@ class JSON {
* @return string json formatted string if not admin user.
*/
public static function checkAdminUser() {
- return(\OC_JSON::checkAdminUser());
+ \OC_JSON::checkAdminUser();
}
/**
@@ -177,4 +177,12 @@ class JSON {
public static function encode($data) {
return(\OC_JSON::encode($data));
}
+
+ /**
+ * Check is a given user exists - send json error msg if not
+ * @param string $user
+ */
+ public static function checkUserExists($user) {
+ \OC_JSON::checkUserExists($user);
+ }
}