summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
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_versions
parente2fb094693e94d425fa9f59278806ef636fc127b (diff)
downloadnextcloud-server-31e32e3c10ace169e0d841ff6e4b17d11fe64f1b.tar.gz
nextcloud-server-31e32e3c10ace169e0d841ff6e4b17d11fe64f1b.zip
ported checkLoggedIn and checkAdmin
Diffstat (limited to 'apps/files_versions')
-rwxr-xr-xapps/files_versions/history.php2
-rwxr-xr-xapps/files_versions/settings.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/history.php b/apps/files_versions/history.php
index d806638e011..eb8886239d3 100755
--- a/apps/files_versions/history.php
+++ b/apps/files_versions/history.php
@@ -22,7 +22,7 @@
*/
require_once( '../../lib/base.php' );
-OC_Util::checkLoggedIn( );
+OCP\User::checkLoggedIn( );
OCP\Util::addStyle('files_versions','versions');
$tmpl = new OC_Template( 'files_versions', 'history', 'user' );
diff --git a/apps/files_versions/settings.php b/apps/files_versions/settings.php
index c6312b7be7b..59609de15b4 100755
--- a/apps/files_versions/settings.php
+++ b/apps/files_versions/settings.php
@@ -1,6 +1,6 @@
<?php
-OC_Util::checkAdminUser();
+OCP\User::checkAdminUser();
OCP\Util::addscript( 'files_versions', 'versions' );