mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 08:57:03 +03:00
Resolve #1024
This commit is contained in:
parent
68cf58e9da
commit
a702a45086
1 changed files with 3 additions and 2 deletions
|
|
@ -137,10 +137,12 @@ abstract class Service
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($bIndex) {
|
if ($bIndex) {
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/1024
|
||||||
|
$oHttp->ServerNoCache();
|
||||||
|
|
||||||
if (!$bAdmin) {
|
if (!$bAdmin) {
|
||||||
$login = $oConfig->Get('labs', 'custom_login_link', '');
|
$login = $oConfig->Get('labs', 'custom_login_link', '');
|
||||||
if ($login && !$oActions->getAccountFromToken(false)) {
|
if ($login && !$oActions->getAccountFromToken(false)) {
|
||||||
$oHttp->ServerNoCache();
|
|
||||||
\MailSo\Base\Http::Location($login);
|
\MailSo\Base\Http::Location($login);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -150,7 +152,6 @@ abstract class Service
|
||||||
\header('Content-Type: text/html; charset=utf-8');
|
\header('Content-Type: text/html; charset=utf-8');
|
||||||
|
|
||||||
if (!\is_dir(APP_DATA_FOLDER_PATH) || !\is_writable(APP_DATA_FOLDER_PATH)) {
|
if (!\is_dir(APP_DATA_FOLDER_PATH) || !\is_writable(APP_DATA_FOLDER_PATH)) {
|
||||||
$oHttp->ServerNoCache();
|
|
||||||
echo $oServiceActions->ErrorTemplates(
|
echo $oServiceActions->ErrorTemplates(
|
||||||
'Permission denied!',
|
'Permission denied!',
|
||||||
'SnappyMail can not access the data folder "'.APP_DATA_FOLDER_PATH.'"'
|
'SnappyMail can not access the data folder "'.APP_DATA_FOLDER_PATH.'"'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue