set incognito mode for public.php calls. Because in this case ownCloud should always work the same way as if no user is logged in

This commit is contained in:
Bjoern Schiessle 2013-11-22 14:00:08 +01:00
parent 7e4f50d4e3
commit 2cc0c90015
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ try {
OC_Util::checkAppEnabled($app);
OC_App::loadApp($app);
OC_User::setIncognitoMode(true);
require_once OC_App::getAppPath($app) .'/'. $parts[1];