summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 22:59:38 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 22:59:38 +0200
commit31e32e3c10ace169e0d841ff6e4b17d11fe64f1b (patch)
tree9a66b470bb9d5c8957a41902e17b5b4e95243343 /apps/files
parente2fb094693e94d425fa9f59278806ef636fc127b (diff)
downloadnextcloud-server-31e32e3c10ace169e0d841ff6e4b17d11fe64f1b.tar.gz
nextcloud-server-31e32e3c10ace169e0d841ff6e4b17d11fe64f1b.zip
ported checkLoggedIn and checkAdmin
Diffstat (limited to 'apps/files')
-rwxr-xr-x[-rw-r--r--]apps/files/admin.php2
-rwxr-xr-x[-rw-r--r--]apps/files/ajax/download.php2
-rwxr-xr-x[-rw-r--r--]apps/files/download.php2
-rwxr-xr-xapps/files/index.php2
-rwxr-xr-xapps/files/settings.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php
index bdea70506fb..ae7ea0436a0 100644..100755
--- a/apps/files/admin.php
+++ b/apps/files/admin.php
@@ -25,7 +25,7 @@
// Init owncloud
-OC_Util::checkAdminUser();
+OCP\User::checkAdminUser();
$htaccessWorking=(getenv('htaccessWorking')=='true');
diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php
index 65c04c36faf..fd2d9b891f5 100644..100755
--- a/apps/files/ajax/download.php
+++ b/apps/files/ajax/download.php
@@ -28,7 +28,7 @@ $RUNTIME_APPTYPES=array('filesystem');
// Check if we are a user
-OC_Util::checkLoggedIn();
+OCP\User::checkLoggedIn();
$files = $_GET["files"];
$dir = $_GET["dir"];
diff --git a/apps/files/download.php b/apps/files/download.php
index ec4a6e1fc9c..a4077b9f042 100644..100755
--- a/apps/files/download.php
+++ b/apps/files/download.php
@@ -25,7 +25,7 @@
// Check if we are a user
-OC_Util::checkLoggedIn();
+OCP\User::checkLoggedIn();
$filename = $_GET["file"];
diff --git a/apps/files/index.php b/apps/files/index.php
index 180452593ab..2d3b0a13b25 100755
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -22,7 +22,7 @@
*/
// Check if we are a user
-OC_Util::checkLoggedIn();
+OCP\User::checkLoggedIn();
// Load the files we need
OCP\Util::addStyle( "files", "files" );
diff --git a/apps/files/settings.php b/apps/files/settings.php
index 46d557b43ca..cfadc54573d 100755
--- a/apps/files/settings.php
+++ b/apps/files/settings.php
@@ -26,7 +26,7 @@
// Check if we are a user
-OC_Util::checkLoggedIn();
+OCP\User::checkLoggedIn();
// Load the files we need
OCP\Util::addStyle( "files", "files" );