summaryrefslogtreecommitdiffstats
path: root/lib/private/user.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-27 16:52:30 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-27 16:52:30 +0100
commit6deda1b9f6a9f33294fab7ecf6aa60f0347f783b (patch)
treeb4c4bc4c3fd31e1579ee20c5534872f750162b3c /lib/private/user.php
parent40231c08cf617b5909dee778372d6b1b8cdd5bcf (diff)
downloadnextcloud-server-6deda1b9f6a9f33294fab7ecf6aa60f0347f783b.tar.gz
nextcloud-server-6deda1b9f6a9f33294fab7ecf6aa60f0347f783b.zip
return false if user is in incognito mode
Diffstat (limited to 'lib/private/user.php')
-rw-r--r--lib/private/user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/user.php b/lib/private/user.php
index 210e5ed3f02..e0d6b9f3f51 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -314,7 +314,7 @@ class OC_User {
* Checks if the user is logged in
*/
public static function isLoggedIn() {
- if (\OC::$session->get('user_id')) {
+ if (\OC::$session->get('user_id') && self::$incognitoMode === false) {
OC_App::loadApps(array('authentication'));
self::setupBackends();
return self::userExists(\OC::$session->get('user_id'));
@@ -353,7 +353,7 @@ class OC_User {
* @return bool
*/
public static function isAdminUser($uid) {
- if (OC_Group::inGroup($uid, 'admin')) {
+ if (OC_Group::inGroup($uid, 'admin') && self::$incognitoMode === false) {
return true;
}
return false;