From 1bae3370fa95b9fc00f81432b9743b28b960dd7d Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 7 Jun 2022 11:01:01 +0200 Subject: [PATCH] Changes for #430 --- snappymail/v/0.0.0/app/libraries/snappymail/repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/repository.php b/snappymail/v/0.0.0/app/libraries/snappymail/repository.php index ac98d3426..9c335c235 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/repository.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/repository.php @@ -179,7 +179,7 @@ abstract class Repository public static function getPackagesList() : array { - \RainLoop\Api::Actions()->IsAdminLoggined(); + empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']) && \RainLoop\Api::Actions()->IsAdminLoggined(); $bReal = false; $sError = ''; @@ -239,7 +239,7 @@ abstract class Repository public static function installPackage(string $sType, string $sId, string $sFile) : bool { - \RainLoop\Api::Actions()->IsAdminLoggined(); + empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']) && \RainLoop\Api::Actions()->IsAdminLoggined(); \RainLoop\Api::Logger()->Write('Start package install: '.$sFile.' ('.$sType.')', \MailSo\Log\Enumerations\Type::INFO, 'INSTALLER');