diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 22:59:38 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 22:59:38 +0200 |
commit | 31e32e3c10ace169e0d841ff6e4b17d11fe64f1b (patch) | |
tree | 9a66b470bb9d5c8957a41902e17b5b4e95243343 /apps/external | |
parent | e2fb094693e94d425fa9f59278806ef636fc127b (diff) | |
download | nextcloud-server-31e32e3c10ace169e0d841ff6e4b17d11fe64f1b.tar.gz nextcloud-server-31e32e3c10ace169e0d841ff6e4b17d11fe64f1b.zip |
ported checkLoggedIn and checkAdmin
Diffstat (limited to 'apps/external')
-rwxr-xr-x[-rw-r--r--] | apps/external/ajax/setsites.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/external/index.php | 2 | ||||
-rwxr-xr-x | apps/external/settings.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/external/ajax/setsites.php b/apps/external/ajax/setsites.php index 3223bf68d9b..5f36b3d13d5 100644..100755 --- a/apps/external/ajax/setsites.php +++ b/apps/external/ajax/setsites.php @@ -7,7 +7,7 @@ */ -OC_Util::checkAdminUser(); +OCP\User::checkAdminUser(); $sites = array(); for ($i = 0; $i < sizeof($_POST['site_name']); $i++) { diff --git a/apps/external/index.php b/apps/external/index.php index 0baa62a94b6..1d4e5cc5051 100644..100755 --- a/apps/external/index.php +++ b/apps/external/index.php @@ -23,7 +23,7 @@ require_once('lib/external.php'); -OC_Util::checkLoggedIn(); +OCP\User::checkLoggedIn(); if (isset($_GET['id'])) { diff --git a/apps/external/settings.php b/apps/external/settings.php index a0c4bb0523d..c1a4242c333 100755 --- a/apps/external/settings.php +++ b/apps/external/settings.php @@ -1,6 +1,6 @@ <?php -OC_Util::checkAdminUser(); +OCP\User::checkAdminUser(); OCP\Util::addscript( "external", "admin" ); |