Skip to content

Commit

Permalink
Resolve #1024
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Mar 21, 2023
1 parent 68cf58e commit a702a45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snappymail/v/0.0.0/app/libraries/RainLoop/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ private static function RunResult() : bool
}

if ($bIndex) {
// https://github.com/the-djmaze/snappymail/issues/1024
$oHttp->ServerNoCache();

if (!$bAdmin) {
$login = $oConfig->Get('labs', 'custom_login_link', '');
if ($login && !$oActions->getAccountFromToken(false)) {
$oHttp->ServerNoCache();
\MailSo\Base\Http::Location($login);
return true;
}
Expand All @@ -150,7 +152,6 @@ private static function RunResult() : bool
\header('Content-Type: text/html; charset=utf-8');

if (!\is_dir(APP_DATA_FOLDER_PATH) || !\is_writable(APP_DATA_FOLDER_PATH)) {
$oHttp->ServerNoCache();
echo $oServiceActions->ErrorTemplates(
'Permission denied!',
'SnappyMail can not access the data folder "'.APP_DATA_FOLDER_PATH.'"'
Expand Down

0 comments on commit a702a45

Please sign in to comment.