only allow caching, if login succeeds, otherwise we get a cached redirect to login

This commit is contained in:
Ralf Becker 2014-02-10 09:15:29 +00:00
parent bf376292f5
commit 486303cde5

View File

@ -18,7 +18,6 @@ $GLOBALS['egw_info'] = array(
'noappheader' => True,
'noappfooter' => True,
'nofooter' => True,
'nocachecontrol' => True // allow cacheing
)
);
try {
@ -27,6 +26,8 @@ try {
catch (egw_exception_no_permission_app $e) {
// ignore exception, if home is not allowed, eg. for sitemgr
}
// only allow caching, if login succeeds, otherwise we get a cached redirect to login ;-)
egw_session::cache_control(true);
header('Content-type: text/javascript; charset='.translation::charset());
translation::add_app('jscalendar');