]> source.dussan.org Git - nextcloud-server.git/commitdiff
ported isLoggedIn
authorFrank Karlitschek <frank@owncloud.org>
Tue, 1 May 2012 16:46:15 +0000 (18:46 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Tue, 1 May 2012 16:46:15 +0000 (18:46 +0200)
apps/calendar/ajax/event/edit.form.php
apps/calendar/ajax/event/new.form.php
apps/files_encryption/appinfo/app.php

index e963da32958b9be327909fa6f1713daa4926fe07..e2b23d71f9bb7f77112fb100a4a2537ad6612b34 100644 (file)
@@ -8,7 +8,7 @@
 
  
 
-if(!OC_USER::isLoggedIn()) {
+if(!OCP\User::isLoggedIn()) {
        die('<script type="text/javascript">document.location = oc_webroot;</script>');
 }
 OC_JSON::checkAppEnabled('calendar');
index 62087e9a8175a3d381eb66537b5135425ebf877b..155e3dc371e06f9645b02410376bdf483aee9e36 100644 (file)
@@ -8,7 +8,7 @@
 
  
 
-if(!OC_USER::isLoggedIn()) {
+if(!OCP\User::isLoggedIn()) {
        die('<script type="text/javascript">document.location = oc_webroot;</script>');
 }
 OC_JSON::checkAppEnabled('calendar');
index 68c445d5d775299801c846bfd8382aa109884c0e..fda2a55234b565fac430d83320c5b9f1f7ef3c7b 100644 (file)
@@ -10,7 +10,7 @@ OC_Hook::connect('OC_User','post_login','OC_Crypt','loginListener');
 
 stream_wrapper_register('crypt','OC_CryptStream');
 
-if(!isset($_SESSION['enckey']) and OC_User::isLoggedIn()){//force the user to re-loggin if the encryption key isn't unlocked (happens when a user is logged in before the encryption app is enabled)
+if(!isset($_SESSION['enckey']) and OCP\User::isLoggedIn()){//force the user to re-loggin if the encryption key isn't unlocked (happens when a user is logged in before the encryption app is enabled)
        OC_User::logout();
        header("Location: ".OC::$WEBROOT.'/');
        exit();