mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Changes for #430
This commit is contained in:
parent
f4e5b8730a
commit
1bae3370fa
1 changed files with 2 additions and 2 deletions
|
|
@ -179,7 +179,7 @@ abstract class Repository
|
||||||
|
|
||||||
public static function getPackagesList() : array
|
public static function getPackagesList() : array
|
||||||
{
|
{
|
||||||
\RainLoop\Api::Actions()->IsAdminLoggined();
|
empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']) && \RainLoop\Api::Actions()->IsAdminLoggined();
|
||||||
|
|
||||||
$bReal = false;
|
$bReal = false;
|
||||||
$sError = '';
|
$sError = '';
|
||||||
|
|
@ -239,7 +239,7 @@ abstract class Repository
|
||||||
|
|
||||||
public static function installPackage(string $sType, string $sId, string $sFile) : bool
|
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');
|
\RainLoop\Api::Logger()->Write('Start package install: '.$sFile.' ('.$sType.')', \MailSo\Log\Enumerations\Type::INFO, 'INSTALLER');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue