Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 00:59:38 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 00:59:38 +0400
commit31e32e3c10ace169e0d841ff6e4b17d11fe64f1b (patch)
tree9a66b470bb9d5c8957a41902e17b5b4e95243343 /apps/files_sharing
parente2fb094693e94d425fa9f59278806ef636fc127b (diff)
ported checkLoggedIn and checkAdmin
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-xapps/files_sharing/list.php2
-rwxr-xr-xapps/files_sharing/settings.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index 9a8a36219ae..e607348a037 100755
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -23,7 +23,7 @@
require_once('lib_share.php');
-OC_Util::checkLoggedIn();
+OCP\User::checkLoggedIn();
OC_Util::checkAppEnabled('files_sharing');
OC_App::setActiveNavigationEntry("files_sharing_list");
diff --git a/apps/files_sharing/settings.php b/apps/files_sharing/settings.php
index da38b88d79e..26c8df682bb 100755
--- a/apps/files_sharing/settings.php
+++ b/apps/files_sharing/settings.php
@@ -1,6 +1,6 @@
<?php
-OC_Util::checkAdminUser();
+OCP\User::checkAdminUser();
OCP\Util::addscript('files_sharing', 'settings');
$tmpl = new OC_Template('files_sharing', 'settings');
$tmpl->assign('allowResharing', OC_Appconfig::getValue('files_sharing', 'resharing', 'yes'));