allow loading of css files even if a user isn't logged in

This commit is contained in:
Georg Ehrke 2012-05-17 21:56:33 +02:00
parent 6146b6a131
commit b35c6b57a9
1 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,10 @@ if($_SERVER['REQUEST_METHOD']=='PROPFIND'){
header('location: '.OC_Helper::linkToRemote('webdav'));
exit();
}
elseif(!OC_User::isLoggedIn() && substr(OC::$REQUESTEDFILE,-3) == 'css'){
OC_App::loadApps();
OC::loadfile();
}
// Someone is logged in :
elseif(OC_User::isLoggedIn()) {
OC_App::loadApps();