ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Magento_Backend::system">
<resource id="Magento_Backend::system_other_settings">
<resource id="Amasty_AdminActionsLog::amaudit" title="Amasty Admin Actions Log">
<resource id="Amasty_AdminActionsLog::actions_log" title="Actions Log" sortOrder="10"/>
<resource id="Amasty_AdminActionsLog::active_sessions" title="Active Sessions" sortOrder="20"/>
<resource id="Amasty_AdminActionsLog::login_attempts" title="Login Attempts" sortOrder="30"/>
<resource id="Amasty_AdminActionsLog::page_visit_history" title="Page Visit History" sortOrder="40"/>
<resource id="Amasty_AdminActionsLog::clear_logging" title="Clear Logging" sortOrder="50"/>
</resource>
</resource>
</resource>
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Amasty_AdminActionsLog::amaudit_settings" title="Amasty Admin Actions Log" sortOrder="70903"/>
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
+488
View File
@@ -0,0 +1,488 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool">
<arguments>
<argument name="modifiers" xsi:type="array">
<item name="history" xsi:type="array">
<item name="class" xsi:type="string">Amasty\AdminActionsLog\Ui\DataProvider\Product\Form\Modifier\History</item>
<item name="sortOrder" xsi:type="number">20</item>
</item>
</argument>
</arguments>
</virtualType>
<type name="Amasty\AdminActionsLog\Ui\DataProvider\ActionsLog\Listing">
<arguments>
<argument name="collectionModifiers" xsi:type="array">
<item name="amaudit_order_history_listing" xsi:type="object">Amasty\AdminActionsLog\Ui\Component\Listing\Filter\FilterOrderListing</item>
<item name="amaudit_product_history_listing" xsi:type="object">Amasty\AdminActionsLog\Ui\Component\Listing\Filter\FilterProductListing</item>
<item name="amaudit_customer_history_listing" xsi:type="object">Amasty\AdminActionsLog\Ui\Component\Listing\Filter\FilterCustomerListing</item>
</argument>
</arguments>
</type>
<!-- Action Validators configuration start -->
<type name="Amasty\AdminActionsLog\Logging\ActionType\Validation\ObjectClassValidator">
<arguments>
<argument name="classList" xsi:type="object">AmActionLog_GlobalIgnoreClassList</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Logging\ActionType\Validation\ActionValidator">
<arguments>
<argument name="actionsList" xsi:type="object">AmActionLog_GlobalIgnoreActionsList</argument>
</arguments>
</type>
<!-- Action Validators configuration end -->
<!-- Action Handler configuration start -->
<virtualType name="AmActionLog_CacheHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all_no_index" xsi:type="string">adminhtml_cache_(?!index)</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_DISPATCH</argument>
<argument name="priority" xsi:type="number">0</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_ExportHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="filetypes" xsi:type="string">(csv|excel|xml)</item>
<item name="export_post" xsi:type="string">_exportPost$</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_DISPATCH</argument>
<argument name="priority" xsi:type="number">50</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_AdminSessionHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all" xsi:type="string">.*</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_DISPATCH</argument>
<argument name="priority" xsi:type="number">100</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_EntitySaveBeforeHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all" xsi:type="string">.*</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
<item name="class_ignore" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\ObjectClassValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_SAVE_BEFORE</argument>
<argument name="priority" xsi:type="number">1000</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_EntitySaveAfterHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all" xsi:type="string">.*</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
<item name="class_ignore" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\ObjectClassValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_SAVE_AFTER</argument>
<argument name="priority" xsi:type="number">1000</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_EntityDeleteHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all" xsi:type="string">.*</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
<item name="class_ignore" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\ObjectClassValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_DELETE</argument>
<argument name="priority" xsi:type="number">1000</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_LayoutRenderBeforeHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all" xsi:type="string">.*</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
<item name="log_visit_history_enabled" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingVisitHistoryValidator</item>
<item name="action_ignore" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\ActionValidator</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_LAYOUT_RENDER_BEFORE</argument>
<argument name="priority" xsi:type="number">100</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_SucceedLoginHandlerConfig" type="Amasty\AdminActionsLog\Logging\ActionType\TypeConfig">
<arguments>
<argument name="actionsRegExp" xsi:type="array">
<item name="all" xsi:type="string">.*</item>
</argument>
<argument name="validators" xsi:type="array">
<item name="log_allowed" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\LoggingAllowedValidator</item>
<item name="tfa_granted" xsi:type="object">Amasty\AdminActionsLog\Logging\ActionType\Validation\TwoFactorGranted</item>
</argument>
<argument name="event" xsi:type="const">Amasty\AdminActionsLog\Api\Logging\MetadataInterface::EVENT_LOGIN</argument>
<argument name="priority" xsi:type="number">150</argument>
</arguments>
</virtualType>
<type name="Amasty\AdminActionsLog\Logging\ActionType\RenderBefore\Layout">
<arguments>
<argument name="visitHistoryManager" xsi:type="object">Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryManager\Proxy</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Logging\ActionType\HandlerResolver">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="admin_session" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\Dispatch\AdminSession</item>
<item name="config" xsi:type="object">AmActionLog_AdminSessionHandlerConfig</item>
</item>
<item name="cache" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\Dispatch\Cache</item>
<item name="config" xsi:type="object">AmActionLog_CacheHandlerConfig</item>
</item>
<item name="export" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\Dispatch\Export</item>
<item name="config" xsi:type="object">AmActionLog_ExportHandlerConfig</item>
</item>
<item name="entity_save_before" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\BeforeSave\Entity</item>
<item name="config" xsi:type="object">AmActionLog_EntitySaveBeforeHandlerConfig</item>
</item>
<item name="entity_save_after" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\AfterSave\Entity</item>
<item name="config" xsi:type="object">AmActionLog_EntitySaveAfterHandlerConfig</item>
</item>
<item name="entity_delete" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\Delete\Entity</item>
<item name="config" xsi:type="object">AmActionLog_EntityDeleteHandlerConfig</item>
</item>
<item name="layout_render_before" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\RenderBefore\Layout</item>
<item name="config" xsi:type="object">AmActionLog_LayoutRenderBeforeHandlerConfig</item>
</item>
<item name="succeed_login" xsi:type="array">
<item name="handlerClass" xsi:type="string">Amasty\AdminActionsLog\Logging\ActionType\Login\SucceedLogin</item>
<item name="config" xsi:type="object">AmActionLog_SucceedLoginHandlerConfig</item>
</item>
</argument>
</arguments>
</type>
<!-- Action Handler configuration end -->
<!-- Entity Save Handler configuration start -->
<type name="Amasty\AdminActionsLog\Logging\Entity\SaveHandlerProvider">
<arguments>
<argument name="entityTypes" xsi:type="array">
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Config" xsi:type="array">
<item name="config" xsi:type="string">Magento\Framework\App\Config\Value</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Sales\Order" xsi:type="array">
<item name="order" xsi:type="string">Magento\Sales\Model\Order</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Sales\Invoice" xsi:type="array">
<item name="invoice" xsi:type="string">Magento\Sales\Model\Order\Invoice</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Sales\Creditmemo" xsi:type="array">
<item name="credit_memo" xsi:type="string">Magento\Sales\Model\Order\Creditmemo</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Sales\Shipment" xsi:type="array">
<item name="order_shipment" xsi:type="string">Magento\Sales\Model\Order\Shipment</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Sales\OrderAddress" xsi:type="array">
<item name="order_address" xsi:type="string">Magento\Sales\Model\Order\Address</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Sales\Rma" xsi:type="array">
<item name="rma" xsi:type="string">Magento\Rma\Model\Rma</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Cms\Block" xsi:type="array">
<item name="block" xsi:type="string">Magento\Cms\Model\Block</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Cms\Page" xsi:type="array">
<item name="page" xsi:type="string">Magento\Cms\Model\Page</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Cms\Widget" xsi:type="array">
<item name="widget" xsi:type="string">Magento\Widget\Model\Widget\Instance</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Catalog\Product" xsi:type="array">
<item name="product" xsi:type="string">Magento\Catalog\Model\Product</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Catalog\ProductOption" xsi:type="array">
<item name="product_option" xsi:type="string">Magento\Catalog\Model\Product\Option</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Catalog\ProductOptionValue" xsi:type="array">
<item name="product_option_value" xsi:type="string">Magento\Catalog\Model\Product\Option\Value</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Catalog\ProductGalleryEntry" xsi:type="array">
<item name="product_gallery_entry" xsi:type="string">Magento\Catalog\Model\Product\Gallery\Entry</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Catalog\Category" xsi:type="array">
<item name="category" xsi:type="string">Magento\Catalog\Model\Category</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Customer\Customer" xsi:type="array">
<item name="customer" xsi:type="string">Magento\Customer\Model\Backend\Customer</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Customer\CustomerAddress" xsi:type="array">
<item name="customer_address" xsi:type="string">Magento\Customer\Model\Address</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Customer\CustomerGroup" xsi:type="array">
<item name="customer_group" xsi:type="string">Magento\Customer\Model\Group</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Promotions\CatalogPriceRule" xsi:type="array">
<item name="catalog_price_rule" xsi:type="string">Magento\CatalogRule\Model\Rule</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Promotions\CartPriceRule" xsi:type="array">
<item name="cart_price_rule" xsi:type="string">Magento\SalesRule\Model\Rule</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Promotions\GiftCardAccounts" xsi:type="array">
<item name="gift_card_account" xsi:type="string">Magento\GiftCardAccount\Model\Giftcardaccount</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Promotions\RelatedProductsRule" xsi:type="array">
<item name="related_products_rule" xsi:type="string">Magento\TargetRule\Model\Rule</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Communications\EmailTemplates" xsi:type="array">
<item name="email_templates" xsi:type="string">Magento\Email\Model\BackendTemplate</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Communications\NewsletterTemplates" xsi:type="array">
<item name="newsletter_templates" xsi:type="string">Magento\Newsletter\Model\Template</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Marketing\Seo\UrlRewrite" xsi:type="array">
<item name="url_rewrites" xsi:type="string">Magento\UrlRewrite\Model\UrlRewrite</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Customer\CustomerSegment" xsi:type="array">
<item name="customer_segment" xsi:type="string">Magento\CustomerSegment\Model\Segment</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\EavAttribute" xsi:type="array">
<item name="attribute" xsi:type="string">Magento\Catalog\Model\ResourceModel\Eav\Attribute</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Admin\User" xsi:type="array">
<item name="admin" xsi:type="string">Magento\User\Model\User</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Admin\UserExpiration" xsi:type="array">
<item name="admin_expiration" xsi:type="string">Magento\Security\Model\UserExpiration</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Admin\UserRole" xsi:type="array">
<item name="admin_role" xsi:type="string">Magento\Authorization\Model\Role</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Inventory\Model\SourceItem" xsi:type="array">
<item name="source_item" xsi:type="string">Magento\Inventory\Model\SourceItem</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Adminhtml\Stock\Item" xsi:type="array">
<item name="stock_item" xsi:type="string">Magento\CatalogInventory\Model\Adminhtml\Stock\Item</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\CheckoutAgreement\Agreement" xsi:type="array">
<item name="checkout_agreement" xsi:type="string">Magento\CheckoutAgreements\Model\Agreement</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Flag" xsi:type="array">
<item name="magento_framework_flag" xsi:type="string">Magento\Framework\Flag</item>
</item>
<item name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Amasty\RequestQuote\Model\Quote" xsi:type="array">
<item name="request_quote_quote" xsi:type="string">Amasty\RequestQuote\Model\Quote</item>
</item>
</argument>
</arguments>
</type>
<!-- Entity Save Handler configuration end -->
<!-- Entity Restore Handler configuration start -->
<type name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandlerProvider">
<arguments>
<argument name="entityTypes" xsi:type="array">
<item name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandler\Config" xsi:type="array">
<item name="config" xsi:type="string">Magento\Framework\App\Config\Value</item>
<item name="email" xsi:type="string">Magento\Config\Model\Config\Backend\Email\Address</item>
</item>
<item name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandler\Product" xsi:type="array">
<item name="product" xsi:type="string">Magento\Catalog\Model\Product</item>
</item>
<item name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandler\Category" xsi:type="array">
<item name="product" xsi:type="string">Magento\Catalog\Model\Category</item>
</item>
<item name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandler\ProductOption" xsi:type="array">
<item name="product_option" xsi:type="string">Magento\Catalog\Model\Product\Option</item>
</item>
<item name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandler\ProductOptionValue" xsi:type="array">
<item name="product_option_value" xsi:type="string">Magento\Catalog\Model\Product\Option\Value</item>
</item>
<item name="Amasty\AdminActionsLog\Restoring\Entity\RestoreHandler\OrderAddress" xsi:type="array">
<item name="order_address" xsi:type="string">Magento\Sales\Model\Order\Address</item>
</item>
</argument>
</arguments>
</type>
<!-- Entity Restore Handler configuration end -->
<!-- SessionUserDataProvider configuration start -->
<virtualType name="AmActionLogRemoteAddressWithAdditionalIpHeaders" type="Magento\Framework\HTTP\PhpEnvironment\RemoteAddress\Proxy">
<arguments>
<argument name="alternativeHeaders" xsi:type="array">
<item name="x-forwarded-for" xsi:type="string">HTTP_X_FORWARDED_FOR</item>
<item name="x-real-ip" xsi:type="string">HTTP_X_REAL_IP</item>
</argument>
</arguments>
</virtualType>
<type name="Amasty\AdminActionsLog\Model\Admin\SessionUserDataProvider">
<arguments>
<argument name="remoteAddress" xsi:type="object">AmActionLogRemoteAddressWithAdditionalIpHeaders</argument>
<argument name="geolocation" xsi:type="object">Amasty\Geoip\Model\Geolocation\Proxy</argument>
<argument name="locateList" xsi:type="object">Magento\Framework\Locale\ListsInterface\Proxy</argument>
</arguments>
</type>
<!-- SessionUserDataProvider configuration end -->
<type name="Amasty\AdminActionsLog\Logging\ActionType\Dispatch\AdminSession">
<arguments>
<argument name="activeSessionManager" xsi:type="object">Amasty\AdminActionsLog\Api\ActiveSessionManagerInterface\Proxy</argument>
<argument name="visitHistoryManager" xsi:type="object">Amasty\AdminActionsLog\Api\VisitHistoryManagerInterface\Proxy</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Restoring\RestoreValidator\LogEntryTypeValidator">
<arguments>
<argument name="notRestorableCategories" xsi:type="array">
<item name="create_order" xsi:type="string">sales/order_create</item>
<item name="view_order" xsi:type="string">sales/order/view</item>
</argument>
</arguments>
</type>
<!-- TODO: remove some ignored classes-->
<virtualType name="AmActionLog_GlobalIgnoreClassList" type="Amasty\AdminActionsLog\Logging\Util\Ignore\ClassList">
<arguments>
<argument name="list" xsi:type="array">
<item name="amasty_adminactionslog_model_logentry" xsi:type="string">Amasty\AdminActionsLog\Model\LogEntry\LogEntry</item>
<item name="amasty_adminactionslog_model_logdetail" xsi:type="string">Amasty\AdminActionsLog\Model\LogEntry\LogDetail</item>
<item name="amasty_adminactionslog_activesessions_activesessions" xsi:type="string">Amasty\AdminActionsLog\Model\ActiveSession\ActiveSession</item>
<item name="amasty_adminactionslog_visithistoryentry" xsi:type="string">Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryEntry</item>
<item name="amasty_adminactionslog_visithistoryentry_detail" xsi:type="string">Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryDetail</item>
<item name="amasty_adminactionslog_loginattempt" xsi:type="string">Amasty\AdminActionsLog\Model\LoginAttempt\LoginAttempt</item>
<item name="amasty_acart_model_quoteemail" xsi:type="string">Amasty\Acart\Model\QuoteEmail</item>
<item name="amasty_fpc_flusheslog" xsi:type="string">Amasty\Fpc\Model\FlushesLog</item>
<item name="magento_downloadable_model_link" xsi:type="string">Magento\Downloadable\Model\Link</item>
<item name="magento_ui_model_bookmark" xsi:type="string">Magento\Ui\Model\Bookmark</item>
<item name="magento_quote_quote_address" xsi:type="string">Magento\Quote\Model\Quote\Address</item>
<item name="magento_store_model_store" xsi:type="string">Magento\Store\Model\Store</item>
<item name="magento_quote_quote" xsi:type="string">Magento\Quote\Model\Quote</item>
<item name="magento_quote_quote_item" xsi:type="string">Magento\Quote\Model\Quote\Item</item>
<item name="magento_quote_quote_payment" xsi:type="string">Magento\Quote\Model\Quote\Payment</item>
<item name="magento_sales_order_item" xsi:type="string">Magento\Sales\Model\Order\Item</item>
<item name="magento_quote_item_option" xsi:type="string">Magento\Quote\Model\Quote\Item\Option</item>
<item name="magento_quote_address_rate" xsi:type="string">Magento\Quote\Model\Quote\Address\Rate</item>
<item name="magento_sales_order_payment" xsi:type="string">Magento\Sales\Model\Order\Payment</item>
<item name="magento_tax_order_tax" xsi:type="string">Magento\Tax\Model\Sales\Order\Tax</item>
<item name="magento_sales_tax_item" xsi:type="string">Magento\Sales\Model\Order\Tax\Item</item>
<item name="magento_salesrule_model_coupon" xsi:type="string">Magento\SalesRule\Model\Coupon</item>
<item name="magento_theme_model_theme" xsi:type="string">Magento\Theme\Model\Theme</item>
<item name="magento_theme_model_data" xsi:type="string">Magento\Theme\Model\Theme\Data</item>
<item name="magento_security_model_adminsessioninfo" xsi:type="string">Magento\Security\Model\AdminSessionInfo</item>
<item name="magento_configurableproduct_configurable_attribute" xsi:type="string">Magento\ConfigurableProduct\Model\Product\Type\Configurable\Attribute</item>
<item name="magento_logging_model_event" xsi:type="string">Magento\Logging\Model\Event</item>
<item name="magento_logging_event_changes" xsi:type="string">Magento\Logging\Model\Event\Changes</item>
<item name="magento_googleoptimizer_model_code" xsi:type="string">Magento\GoogleOptimizer\Model\Code</item>
<item name="magento_bundle_model_selection" xsi:type="string">Magento\Bundle\Model\Selection</item>
<item name="magento_bundle_model_link" xsi:type="string">Magento\Bundle\Model\Link</item>
<item name="magento_indexer_indexer_state" xsi:type="string">Magento\Indexer\Model\Indexer\State</item>
<item name="magento_bundle_model_option" xsi:type="string">Magento\Bundle\Model\Option</item>
<item name="magento_catalogrule_flag" xsi:type="string">Magento\CatalogRule\Model\Flag</item>
<item name="magento_saleerule_cutomer" xsi:type="string">Magento\SalesRule\Model\Rule\Customer</item>
<item name="magento_invoice_item" xsi:type="string">Magento\Sales\Model\Order\Invoice\Item</item>
<item name="magento_shipment_item" xsi:type="string">Magento\Sales\Model\Order\Shipment\Item</item>
<item name="magento_creditmemo_item" xsi:type="string">Magento\Sales\Model\Order\Creditmemo\Item</item>
<item name="magento_adminnotification_system_message" xsi:type="string">Magento\AdminNotification\Model\System\Message</item>
<item name="magento_integration_oauth_token" xsi:type="string">Magento\Integration\Model\Oauth\Token</item>
<item name="dotdigitalgroup_email_model_catalog" xsi:type="string">Dotdigitalgroup\Email\Model\Catalog</item>
<item name="magento_customerattributes_sales_quote" xsi:type="string">Magento\CustomerCustomAttributes\Model\Sales\Quote</item>
<item name="magento_customerattributes_sales_quote_address" xsi:type="string">Magento\CustomerCustomAttributes\Model\Sales\Quote\Address</item>
<item name="magento_customerattributes_sales_order_address" xsi:type="string">Magento\CustomerCustomAttributes\Model\Sales\Order\Address</item>
<item name="magento_customerattributes_sales_order" xsi:type="string">Magento\CustomerCustomAttributes\Model\Sales\Order</item>
<item name="magento_sales_status_history" xsi:type="string">Magento\Sales\Model\Order\Status\History</item>
<item name="magento_tfa_config" xsi:type="string">Magento\TwoFactorAuth\Model\UserConfig</item>
<item name="vartex_tax_customer_country" xsi:type="string">Vertex\Tax\Model\Data\CustomerCountry</item>
<item name="vartex_tax_customer_code" xsi:type="string">Vertex\Tax\Model\Data\CustomerCode</item>
</argument>
</arguments>
</virtualType>
<virtualType name="AmActionLog_GlobalIgnoreActionsList" type="Magento\Framework\DataObject">
<arguments>
<argument name="data" xsi:type="array">
<item name="list" xsi:type="array">
<item name="import_start" xsi:type="string">adminhtml_import_start</item>
<item name="import_validate" xsi:type="string">adminhtml_import_validate</item>
</item>
</argument>
</arguments>
</virtualType>
<type name="Magento\Framework\App\Config\Value">
<plugin name="Amasty_AdminActionsLog::configSaveBefore" type="Amasty\AdminActionsLog\Plugin\App\Config\ValuePlugin"/>
</type>
<type name="Magento\Security\Model\AdminSessionsManager">
<plugin name="Amasty_AdminActionsLog::afterProcessLogin" type="Amasty\AdminActionsLog\Plugin\Security\Model\AdminSessionsManager\AddAdminSessionInfoId"/>
<plugin name="Amasty_AdminActionsLog::updateAdminSessionInfoId" type="Amasty\AdminActionsLog\Plugin\Security\Model\AdminSessionsManager\UpdateAdminSessionInfoId"/>
</type>
<type name="Magento\Inventory\Model\SourceItem\Command\SourceItemsSave">
<plugin name="Amasty_AdminActionsLog::saveSourceItem"
type="Amasty\AdminActionsLog\Plugin\Inventory\Model\SourceItem\Command\SourceItemsSavePlugin"/>
</type>
<type name="Magento\Catalog\Model\Product\Action">
<plugin name="Amasty_AdminActionsLog::processMassStatus" type="Amasty\AdminActionsLog\Plugin\Catalog\Model\Product\ActionPlugin"/>
</type>
<type name="Amasty\AdminActionsLog\Restoring\RestoreValidatorProvider">
<arguments>
<argument name="validatorTypes" xsi:type="array">
<item name="logEntryTypeValidator" xsi:type="object">Amasty\AdminActionsLog\Restoring\RestoreValidator\LogEntryTypeValidator</item>
<item name="scopeValidator" xsi:type="object">Amasty\AdminActionsLog\Restoring\RestoreValidator\ScopeValidator</item>
</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Logging\Entity\SaveHandler\Amasty\RequestQuote\Model\Quote">
<arguments>
<argument name="keysToCheck" xsi:type="array">
<item name="quote_id" xsi:type="string">quote_id</item>
<item name="status" xsi:type="string">status</item>
<item name="increment_id" xsi:type="string">increment_id</item>
<item name="customer_name" xsi:type="string">customer_name</item>
<item name="remarks" xsi:type="string">remarks</item>
<item name="expired_date" xsi:type="string">expired_date</item>
<item name="reminder_date" xsi:type="string">reminder_date</item>
<item name="submited_date" xsi:type="string">submited_date</item>
<item name="admin_notification_send" xsi:type="string">admin_notification_send</item>
<item name="discount" xsi:type="string">discount</item>
<item name="surcharge" xsi:type="string">surcharge</item>
<item name="reminder_send" xsi:type="string">reminder_send</item>
<item name="shipping_can_modified" xsi:type="string">shipping_can_modified</item>
<item name="shipping_configured" xsi:type="string">shipping_configured</item>
<item name="custom_fee" xsi:type="string">custom_fee</item>
<item name="custom_method_enabled" xsi:type="string">custom_method_enabled</item>
<item name="sum_original_price" xsi:type="string">sum_original_price</item>
</argument>
</arguments>
</type>
</config>
+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="controller_action_predispatch">
<observer name="amaudit_handleActionPredispatch" instance="Amasty\AdminActionsLog\Observer\HandleActionPredispatch"/>
</event>
<!-- Model save/delete events start -->
<event name="model_save_before">
<observer name="Amasty_AdminActionsLog::handleModelSaveBefore" instance="Amasty\AdminActionsLog\Observer\HandleModelSaveBefore"/>
</event>
<event name="model_save_after">
<observer name="Amasty_AdminActionsLog::handleModelSaveAfter" instance="Amasty\AdminActionsLog\Observer\HandleModelSaveAfter"/>
</event>
<event name="model_delete_before">
<observer name="Amasty_AdminActionsLog::handleModelDeleteBefore" instance="Amasty\AdminActionsLog\Observer\HandleModelDeleteBefore"/>
</event>
<event name="model_delete_after">
<observer name="Amasty_AdminActionsLog::handleModelDeleteAfter" instance="Amasty\AdminActionsLog\Observer\HandleModelDeleteAfter"/>
</event>
<!-- Model save/delete events end -->
<!-- Amasty_RequestQuote compatibility start -->
<event name="amquote_not_modified_save_before">
<observer name="Amasty_AdminActionsLog::handleNotModifiedQuoteSaveBefore" instance="Amasty\AdminActionsLog\Observer\HandleModelSaveBefore"/>
</event>
<event name="amquote_not_modified_save_after">
<observer name="Amasty_AdminActionsLog::handleNotModifiedQuoteSaveAfter" instance="Amasty\AdminActionsLog\Observer\HandleModelSaveAfter"/>
</event>
<!-- Amasty_RequestQuote compatibility end -->
<!-- User login events start -->
<event name="backend_auth_user_login_success">
<observer name="amaudit_handleBackendAuthUserLoginSuccess" instance="Amasty\AdminActionsLog\Observer\HandleBackendAuthUserLoginSuccess" />
</event>
<event name="backend_auth_user_login_failed">
<observer name="amaudit_handleBackendAuthUserLoginFailed" instance="Amasty\AdminActionsLog\Observer\HandleBackendAuthUserLoginFailed" />
</event>
<!-- User login events end -->
<!-- Layout render events start -->
<event name="layout_render_before">
<observer name="amaudit_handleLayoutRenderBefore" instance="Amasty\AdminActionsLog\Observer\HandleLayoutRenderBefore" />
</event>
<!-- Layout render events end -->
</config>
+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Amasty_AdminActionsLog::amaudit"
title="Admin Actions Log"
module="Amasty_AdminActionsLog"
sortOrder="100"
parent="Magento_Backend::system"
resource="Amasty_AdminActionsLog::amaudit"
/>
<add id="Amasty_AdminActionsLog::actions_log"
title="Actions Log"
module="Amasty_AdminActionsLog"
sortOrder="10"
parent="Amasty_AdminActionsLog::amaudit"
action="amaudit/actionslog/index"
resource="Amasty_AdminActionsLog::actions_log"
/>
<add id="Amasty_AdminActionsLog::active_sessions"
title="Active Sessions"
module="Amasty_AdminActionsLog"
sortOrder="20"
parent="Amasty_AdminActionsLog::amaudit"
action="amaudit/activesessions/index"
resource="Amasty_AdminActionsLog::active_sessions"
/>
<add id="Amasty_AdminActionsLog::login_attempts"
title="Login Attempts"
module="Amasty_AdminActionsLog"
sortOrder="30"
parent="Amasty_AdminActionsLog::amaudit"
action="amaudit/loginattempts/index"
resource="Amasty_AdminActionsLog::login_attempts"
/>
<add id="Amasty_AdminActionsLog::page_visit_history"
title="Page Visit History"
module="Amasty_AdminActionsLog"
sortOrder="40"
parent="Amasty_AdminActionsLog::amaudit"
action="amaudit/visithistory/index"
resource="Amasty_AdminActionsLog::page_visit_history"
/>
</menu>
</config>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="admin">
<route id="amaudit" frontName="amaudit">
<module name="Amasty_AdminActionsLog" />
</route>
</router>
</config>
+180
View File
@@ -0,0 +1,180 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="amaudit" translate="label" type="text" sortOrder="10401" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Admin Actions Log</label>
<tab>amasty</tab>
<resource>Amasty_AdminActionsLog::amaudit_settings</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="log_enable_visit_history" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable Page Visit History</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="geolocation_enable" translate="label tooltip" type="select" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Geolocation</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<frontend_model>Amasty\AdminActionsLog\Block\Adminhtml\System\Config\Form\Geolocation</frontend_model>
<tooltip>If the field is inactive, it means that Geo IP Date was not downloaded. Please navigate to Stores > Configuration > Amasty Extensions > Geo IP Data and download the data.</tooltip>
</field>
<field id="restore_popup_message" translate="label comment" type="textarea" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Restore Settings Warning Text</label>
</field>
<field id="log_all_admins" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Log Actions For All Admin Users</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="log_admin_users" translate="label" type="multiselect" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Admin Users To Log Actions For</label>
<source_model>Amasty\AdminActionsLog\Model\OptionSource\Users</source_model>
<depends>
<field id="log_all_admins">0</field>
</depends>
</field>
<group id="auto_cleaning" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Log Auto-Cleaning</label>
<field id="actions_log_cleaning" translate="label tooltip" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Actions Log Auto-Cleaning</label>
<tooltip>The records that were saved for a longer period than the specified below will be automatically removed from Actions Log.</tooltip>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="actions_log_period" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Auto-Cleaning Period in Days</label>
<tooltip>The records will be automatically removed after the specified period of time.</tooltip>
<validate>required-entry validate-number validate-greater-than-zero validate-digits</validate>
<depends>
<field id="actions_log_cleaning">1</field>
</depends>
</field>
<field id="login_attempts_log_cleaning" translate="label tooltip" type="select" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Login Attempts Auto-Cleaning</label>
<tooltip>The records that were saved for a longer period than the specified below will be automatically removed from Login Attempts Log.</tooltip>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="login_attempts_log_period" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Auto-Cleaning Period in Days</label>
<tooltip>The records will be automatically removed after the specified period of time.</tooltip>
<validate>required-entry validate-number validate-greater-than-zero validate-digits</validate>
<depends>
<field id="login_attempts_log_cleaning">1</field>
</depends>
</field>
<field id="visit_history_log_cleaning" translate="label tooltip" type="select" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Visit History Log Auto-Cleaning</label>
<tooltip>The records that were saved for a longer period than the specified below will be automatically removed from Page Visit History.</tooltip>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="visit_history_log_period" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Auto-Cleaning Period in Days</label>
<tooltip>The records will be automatically removed after the specified period of time.</tooltip>
<validate>required-entry validate-number validate-greater-than-zero validate-digits</validate>
<depends>
<field id="visit_history_log_cleaning">1</field>
</depends>
</field>
</group>
</group>
<group id="email_notifications" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Notifications</label>
<field id="successful_log_mailing_enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Successful Logins To Admin</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="successful_log_mailing_identity" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Sender</label>
<source_model>Magento\Config\Model\Config\Source\Email\Identity</source_model>
<depends>
<field id="successful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="successful_log_mailing_template" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Select Email Template</label>
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
<depends>
<field id="successful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="successful_log_mailing_send_to_mail" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send to Email(s)</label>
<frontend_model>Amasty\AdminActionsLog\Block\Adminhtml\System\Config\Form\Email</frontend_model>
<depends>
<field id="successful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="unsuccessful_log_mailing_enabled" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Unsuccessful Logins To Admin</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="unsuccessful_log_mailing_number_attempts" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Number of Unsuccessful Login Attempts</label>
<tooltip>Enter the number of login attempts before the email with the unsuccessful audit log is sent.</tooltip>
<validate>required-entry validate-number validate-greater-than-zero</validate>
<depends>
<field id="unsuccessful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="unsuccessful_log_mailing_identity" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Sender</label>
<source_model>Magento\Config\Model\Config\Source\Email\Identity</source_model>
<depends>
<field id="unsuccessful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="unsuccessful_log_mailing_template" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Select Email Template</label>
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
<depends>
<field id="unsuccessful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="unsuccessful_log_mailing_send_to_mail" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send to Email(s)</label>
<frontend_model>Amasty\AdminActionsLog\Block\Adminhtml\System\Config\Form\Email</frontend_model>
<depends>
<field id="unsuccessful_log_mailing_enabled">1</field>
</depends>
</field>
<field id="suspicious_log_mailing_enabled" translate="label" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Suspicious Logins To Admin</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="suspicious_log_mailing_if_logged_in" translate="label" type="multiselect" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Suspicious if Logged In</label>
<source_model>Amasty\AdminActionsLog\Model\OptionSource\LoggedInWith</source_model>
<depends>
<field id="suspicious_log_mailing_enabled">1</field>
</depends>
</field>
<field id="suspicious_log_mailing_identity" translate="label" type="select" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Email Sender</label>
<source_model>Magento\Config\Model\Config\Source\Email\Identity</source_model>
<depends>
<field id="suspicious_log_mailing_enabled">1</field>
</depends>
</field>
<field id="suspicious_log_mailing_template" translate="label" type="select" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Select Email Template</label>
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
<depends>
<field id="suspicious_log_mailing_enabled">1</field>
</depends>
</field>
<field id="suspicious_log_mailing_send_to_mail" translate="label" type="text" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send to Email(s)</label>
<frontend_model>Amasty\AdminActionsLog\Block\Adminhtml\System\Config\Form\Email</frontend_model>
<depends>
<field id="suspicious_log_mailing_enabled">1</field>
</depends>
</field>
</group>
</section>
</system>
</config>
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<amaudit>
<general>
<log_enable_visit_history>1</log_enable_visit_history>
<restore_popup_message>Please be careful when restoring changes. It's recommended to have a backup before running restore process.</restore_popup_message>
<log_all_admins>1</log_all_admins>
<auto_cleaning>
<actions_log_cleaning>1</actions_log_cleaning>
<actions_log_period>90</actions_log_period>
<login_attempts_log_cleaning>1</login_attempts_log_cleaning>
<login_attempts_log_period>90</login_attempts_log_period>
<visit_history_log_cleaning>1</visit_history_log_cleaning>
<visit_history_log_period>90</visit_history_log_period>
</auto_cleaning>
</general>
<email_notifications>
<successful_log_mailing_enabled>0</successful_log_mailing_enabled>
<successful_log_mailing_identity>general</successful_log_mailing_identity>
<successful_log_mailing_template>amaudit_email_notifications_successful_log_mailing_template</successful_log_mailing_template>
<successful_log_mailing_send_to_mail>email@example.com</successful_log_mailing_send_to_mail>
<unsuccessful_log_mailing_enabled>0</unsuccessful_log_mailing_enabled>
<unsuccessful_log_mailing_identity>general</unsuccessful_log_mailing_identity>
<unsuccessful_log_mailing_template>amaudit_email_notifications_unsuccessful_log_mailing_template</unsuccessful_log_mailing_template>
<unsuccessful_log_mailing_send_to_mail>email@example.com</unsuccessful_log_mailing_send_to_mail>
<unsuccessful_log_mailing_number_attempts>5</unsuccessful_log_mailing_number_attempts>
<suspicious_log_mailing_enabled>0</suspicious_log_mailing_enabled>
<suspicious_log_mailing_if_logged_in>new_device,new_ip</suspicious_log_mailing_if_logged_in>
<suspicious_log_mailing_identity>general</suspicious_log_mailing_identity>
<suspicious_log_mailing_template>amaudit_email_notifications_suspicious_log_mailing_template</suspicious_log_mailing_template>
<suspicious_log_mailing_send_to_mail>email@example.com</suspicious_log_mailing_send_to_mail>
</email_notifications>
</amaudit>
</default>
</config>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" ?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="default">
<job name="amaudit_clear_log" instance="Amasty\AdminActionsLog\Cron\LogCleaner" method="execute">
<schedule>0 0 * * *</schedule>
</job>
<job name="amaudit_update_active_sessions"
instance="Amasty\AdminActionsLog\Cron\UpdateActiveSessions"
method="execute">
<schedule>* * * * *</schedule>
</job>
</group>
</config>
+114
View File
@@ -0,0 +1,114 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="amasty_audit_log_entry" resource="default" engine="innodb" comment="Amasty Admin Actions Log Entry Table">
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Log Entry ID"/>
<column xsi:type="datetime" name="date" on_update="false" nullable="true" comment="Log Entry Date"/>
<column xsi:type="varchar" name="username" nullable="true" length="40" comment="Log Entry Username"/>
<column xsi:type="varchar" name="type" nullable="true" length="70" comment="Log Entry Type"/>
<column xsi:type="varchar" name="category" length="255" nullable="true" comment="Log Entry Category"/>
<column xsi:type="varchar" name="category_name" length="255" nullable="true" comment="Log Entry Category Name"/>
<column xsi:type="varchar" name="parameter_name" length="255" nullable="true" comment="Log Entry Parameter Name"/>
<column xsi:type="int" name="element_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Log Entry Element ID"/>
<column xsi:type="int" name="view_element_id" padding="10" unsigned="true" nullable="true" identity="false" comment="Log Entry View Element ID"/>
<column xsi:type="text" name="item" nullable="true" comment="Log Entry Item"/>
<column xsi:type="varchar" name="ip" nullable="true" length="30" comment="Log Entry Item"/>
<column xsi:type="int" name="store_id" padding="10" unsigned="true" nullable="true" identity="false" comment="Log Entry Store ID"/>
<column xsi:type="blob" name="additional_data" nullable="true" comment="Additional serialized data"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<index referenceId="AMASTY_AUDIT_LOG_ENTRY_USERNAME" indexType="btree">
<column name="username"/>
</index>
<index referenceId="AMASTY_AUDIT_LOG_ENTRY_CATEGORY" indexType="btree">
<column name="category"/>
</index>
<index referenceId="AMASTY_AUDIT_LOG_ENTRY_ELEMENT_ID" indexType="btree">
<column name="element_id"/>
</index>
</table>
<table name="amasty_audit_log_details" resource="default" engine="innodb" comment="Amasty Admin Actions Log Log Detail Table">
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Log Detail ID"/>
<column xsi:type="int" name="log_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Log Entry ID"/>
<column xsi:type="text" name="name" nullable="true" comment="Name"/>
<column xsi:type="text" name="old_value" nullable="true" comment="Old Value"/>
<column xsi:type="text" name="new_value" nullable="true" comment="New Value"/>
<column xsi:type="text" name="model" nullable="true" comment="Model"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="AMASTY_AUDIT_LOG_DETAILS_LOG_ID_AMASTY_AUDIT_LOG_ENTRY_ID" table="amasty_audit_log_details" column="log_id" referenceTable="amasty_audit_log_entry" referenceColumn="id" onDelete="CASCADE"/>
<index referenceId="AMASTY_AUDIT_LOG_DETAILS_LOG_ID" indexType="btree">
<column name="log_id"/>
</index>
</table>
<table name="amasty_audit_active_sessions" resource="default" engine="innodb" comment="Amasty Admin Actions Log Active Sessions Table">
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Active Session ID"/>
<column xsi:type="text" name="session_id" nullable="false" comment="Active Session Session ID"/>
<column xsi:type="text" name="username" nullable="true" comment="Active Session Username"/>
<column xsi:type="text" name="full_name" nullable="true" comment="Active Session User Full Name"/>
<column xsi:type="text" name="ip" nullable="true" comment="Active Session User IP"/>
<column xsi:type="timestamp" name="session_start" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Active Session Start Time"/>
<column xsi:type="timestamp" name="recent_activity" on_update="true" nullable="false" default="CURRENT_TIMESTAMP" comment="Active Session Recent Activity Time"/>
<column xsi:type="text" name="location" nullable="true" comment="Active Session Location"/>
<column xsi:type="text" name="country_id" nullable="true" comment="Active Session Country ID"/>
<column xsi:type="int" name="admin_session_info_id" padding="10" unsigned="true" nullable="true" identity="false" comment="Admin Session Info Id"/>
<column xsi:type="int" name="user_id" padding="10" unsigned="true" nullable="true" identity="false" comment="Admin User Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<index referenceId="AMASTY_AUDIT_ACTIVE_SESSIONS_USER_ID" indexType="btree">
<column name="user_id"/>
</index>
</table>
<table name="amasty_audit_visit_entry" resource="default" engine="innodb" comment="Amasty Admin Actions Visit History Entry Table">
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Visit History Entry ID"/>
<column xsi:type="text" name="username" nullable="true" comment="Visit History Entry Username"/>
<column xsi:type="text" name="full_name" nullable="true" comment="Visit History Entry Full Name"/>
<column xsi:type="datetime" name="session_start" on_update="false" nullable="true" comment="Visit History Entry Session Start"/>
<column xsi:type="datetime" name="session_end" on_update="false" nullable="true" comment="Visit History Entry Session End"/>
<column xsi:type="text" name="ip" nullable="true" comment="Visit History Entry IP"/>
<column xsi:type="text" name="location" nullable="true" comment="Visit History Entry Location"/>
<column xsi:type="text" name="session_id" nullable="true" comment="Visit History Entry Session Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
</table>
<table name="amasty_audit_visit_details" resource="default" engine="innodb" comment="Amasty Admin Actions Log Visit History Detail Table">
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Visit History Detail ID"/>
<column xsi:type="int" name="visit_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Visit History Entry ID"/>
<column xsi:type="text" name="page_name" nullable="true" comment="Page Name"/>
<column xsi:type="text" name="page_url" nullable="true" comment="Page URL"/>
<column xsi:type="int" name="stay_duration" padding="11" unsigned="false" nullable="true" identity="false" comment="Stay Duration"/>
<column xsi:type="text" name="session_id" nullable="true" comment="Session ID"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="AMASTY_AUDIT_VISIT_DETAILS_VISIT_ID_AMASTY_AUDIT_VISIT_ENTRY_ID" table="amasty_audit_visit_details" column="visit_id" referenceTable="amasty_audit_visit_entry" referenceColumn="id" onDelete="CASCADE"/>
<index referenceId="AMASTY_AUDIT_VISIT_DETAILS_VISIT_ID" indexType="btree">
<column name="visit_id"/>
</index>
</table>
<table name="amasty_audit_login_attempts" resource="default" engine="innodb" comment="Amasty Admin Actions Log Login Attempts Table">
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Login Attempt ID"/>
<column xsi:type="timestamp" name="date_time" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Login Attempt Date Time" disabled="true"/>
<column xsi:type="timestamp" name="date" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Login Attempt Date Time" onCreate="migrateDataFrom(date_time)"/>
<column xsi:type="text" name="username" nullable="true" comment="Login Attempt Username"/>
<column xsi:type="text" name="name" nullable="true" comment="Login Attempt User Full Name" disabled="true"/>
<column xsi:type="text" name="full_name" nullable="true" comment="Login Attempt User Full Name" onCreate="migrateDataFrom(name)"/>
<column xsi:type="text" name="ip" nullable="true" comment="Login Attempt User IP"/>
<column xsi:type="smallint" name="status" padding="6" unsigned="false" nullable="true" identity="false" comment="Login Attempt Status"/>
<column xsi:type="text" name="location" nullable="true" comment="Login Attempt Location"/>
<column xsi:type="text" name="country_id" nullable="true" comment="Login Attempt Country ID"/>
<column xsi:type="text" name="user_agent" nullable="true" comment="Login Attempt User Agent"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
</table>
</schema>
@@ -0,0 +1,110 @@
{
"amasty_audit_log_entry": {
"column": {
"id": true,
"date": true,
"username": true,
"type": true,
"category": true,
"category_name": true,
"parameter_name": true,
"element_id": true,
"view_element_id": true,
"item": true,
"ip": true,
"store_id": true,
"additional_data": true
},
"constraint": {
"PRIMARY": true
}
},
"amasty_audit_log_details": {
"column": {
"id": true,
"log_id": true,
"name": true,
"old_value": true,
"new_value": true,
"model": true
},
"index": {
"AMASTY_AUDIT_LOG_DETAILS_LOG_ID": true
},
"constraint": {
"PRIMARY": true,
"AMASTY_AUDIT_LOG_DETAILS_LOG_ID_AMASTY_AUDIT_LOG_ENTRY_ID": true
}
},
"amasty_audit_active_sessions": {
"column": {
"id": true,
"session_id": true,
"username": true,
"full_name": true,
"ip": true,
"session_start": true,
"recent_activity": true,
"location": true,
"country_id": true,
"admin_session_info_id": true,
"user_id": true
},
"constraint": {
"PRIMARY": true
},
"index": {
"AMASTY_AUDIT_ACTIVE_SESSIONS_USER_ID": true
}
},
"amasty_audit_visit_entry": {
"column": {
"id": true,
"username": true,
"full_name": true,
"session_start": true,
"session_end": true,
"ip": true,
"location": true,
"session_id": true
},
"constraint": {
"PRIMARY": true
}
},
"amasty_audit_visit_details": {
"column": {
"id": true,
"visit_id": true,
"page_name": true,
"page_url": true,
"stay_duration": true,
"session_id": true
},
"index": {
"AMASTY_AUDIT_VISIT_DETAILS_VISIT_ID": true
},
"constraint": {
"PRIMARY": true,
"AMASTY_AUDIT_VISIT_DETAILS_VISIT_ID_AMASTY_AUDIT_VISIT_ENTRY_ID": true
}
},
"amasty_audit_login_attempts": {
"column": {
"id": true,
"date_time": true,
"date": true,
"username": true,
"name": true,
"full_name": true,
"ip": true,
"status": true,
"location": true,
"country_id": true,
"user_agent": true
},
"constraint": {
"PRIMARY": true
}
}
}
+151
View File
@@ -0,0 +1,151 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="amaudit_actionslog_listing_data_source" xsi:type="string">Amasty\AdminActionsLog\Model\LogEntry\ResourceModel\Grid\Collection</item>
<item name="amaudit_order_history_listing_data_source" xsi:type="string">Amasty\AdminActionsLog\Model\LogEntry\ResourceModel\Grid\OrderHistoryCollection</item>
</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Model\LoginAttempt\ResourceModel\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="const">Amasty\AdminActionsLog\Model\LoginAttempt\ResourceModel\LoginAttempt::TABLE_NAME</argument>
<argument name="resourceModel" xsi:type="string">Amasty\AdminActionsLog\Model\LoginAttempt\ResourceModel\LoginAttempt</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Model\LogEntry\ResourceModel\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="const">Amasty\AdminActionsLog\Model\LogEntry\ResourceModel\LogEntry::TABLE_NAME</argument>
<argument name="resourceModel" xsi:type="string">Amasty\AdminActionsLog\Model\LogEntry\ResourceModel\LogEntry</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Model\LoginAttempt\Notification\Type\Failed">
<arguments>
<argument name="dataStorage" xsi:type="object">Amasty\AdminActionsLog\Logging\DataStorage\FlagTable</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Model\LoginAttempt\Notification\Processor">
<arguments>
<argument name="notifierTypes" xsi:type="array">
<item name="0" xsi:type="object">Amasty\AdminActionsLog\Model\LoginAttempt\Notification\Type\Failed\Proxy</item>
<item name="1" xsi:type="object">Amasty\AdminActionsLog\Model\LoginAttempt\Notification\Type\Succeed\Proxy</item>
</argument>
</arguments>
</type>
<type name="Amasty\AdminActionsLog\Model\LoginAttempt\SuspiciousDetection\Detector">
<arguments>
<argument name="detectionTypes" xsi:type="array">
<item name="new_device" xsi:type="object">Amasty\AdminActionsLog\Model\LoginAttempt\SuspiciousDetection\Type\NewDevice</item>
<item name="new_ip" xsi:type="object">Amasty\AdminActionsLog\Model\LoginAttempt\SuspiciousDetection\Type\NewIp</item>
<item name="new_location" xsi:type="object">Amasty\AdminActionsLog\Model\LoginAttempt\SuspiciousDetection\Type\NewLocation</item>
</argument>
</arguments>
</type>
<virtualType name="AmActionLog_TFASession" type="Amasty\AdminActionsLog\Model\Di\Wrapper">
<arguments>
<argument name="name" xsi:type="string">Magento\TwoFactorAuth\Api\TfaSessionInterface</argument>
<argument name="isShared" xsi:type="boolean">true</argument>
<argument name="isProxy" xsi:type="boolean">true</argument>
</arguments>
</virtualType>
<type name="Amasty\AdminActionsLog\Logging\ActionType\Validation\TwoFactorGranted">
<arguments>
<argument name="tfaSession" xsi:type="object">AmActionLog_TFASession</argument>
</arguments>
</type>
<type name="Magento\TwoFactorAuth\Api\TfaSessionInterface">
<plugin name="Amasty_AdminActionsLog::afterTfaAccessGranted" type="Amasty\AdminActionsLog\Plugin\TwoFactorAuth\Model\TfaSessionPlugin" />
</type>
<type name="Magento\User\Model\ResourceModel\User">
<plugin name="Amasty_AdminActionsLog::adminAfterDelele" type="Amasty\AdminActionsLog\Plugin\User\Model\ResourceModel\UserPlugin" />
</type>
<type name="Amasty\AdminActionsLog\Logging\ActionType\RenderBefore\Layout">
<arguments>
<argument name="historyEntryRepository" xsi:type="object">AmActionLog_LastDetailHistoryRepository</argument>
<argument name="dataStorage" xsi:type="object">Amasty\AdminActionsLog\Logging\DataStorage\BackendSession\Proxy</argument>
</arguments>
</type>
<virtualType name="AmActionLog_LastDetailHistoryRepository" type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\Repository">
<arguments>
<argument name="detailLoader" xsi:type="object">Amasty\AdminActionsLog\Model\VisitHistoryEntry\Detail\LastDetailLoader</argument>
</arguments>
</virtualType>
<type name="Amasty\AdminActionsLog\Model\LogEntry\Frontend\LogDetailsFormatter">
<arguments>
<argument name="diffFinder" xsi:type="object">Amasty\AdminActionsLog\Model\DiffFinder\FineDiffAdapter</argument>
</arguments>
</type>
<!-- Preferences Start -->
<preference for="Amasty\AdminActionsLog\Api\Data\LogDetailInterface"
type="Amasty\AdminActionsLog\Model\LogEntry\LogDetail"/>
<preference for="Amasty\AdminActionsLog\Api\Data\LogEntryInterface"
type="Amasty\AdminActionsLog\Model\LogEntry\LogEntry"/>
<preference for="Amasty\AdminActionsLog\Api\LogEntryRepositoryInterface"
type="Amasty\AdminActionsLog\Model\LogEntry\Repository"/>
<preference for="Amasty\AdminActionsLog\Api\Data\LogEntrySearchResultsInterface"
type="Amasty\AdminActionsLog\Model\LogEntry\LogEntrySearchResults"/>
<preference for="Amasty\AdminActionsLog\Api\Data\ActiveSessionInterface"
type="Amasty\AdminActionsLog\Model\ActiveSession\ActiveSession"/>
<preference for="Amasty\AdminActionsLog\Api\ActiveSessionRepositoryInterface"
type="Amasty\AdminActionsLog\Model\ActiveSession\Repository"/>
<preference for="Amasty\AdminActionsLog\Api\ActiveSessionManagerInterface"
type="Amasty\AdminActionsLog\Model\ActiveSession\ActiveSessionManager"/>
<preference for="Amasty\AdminActionsLog\Api\Logging\ObjectDataStorageInterface"
type="Amasty\AdminActionsLog\Logging\DataStorage\InMemory"/>
<preference for="Amasty\AdminActionsLog\Api\Logging\MetadataInterface"
type="Amasty\AdminActionsLog\Logging\Metadata"/>
<preference for="Amasty\AdminActionsLog\Api\Data\LoginAttemptInterface"
type="Amasty\AdminActionsLog\Model\LoginAttempt\LoginAttempt"/>
<preference for="Amasty\AdminActionsLog\Api\LoginAttemptRepositoryInterface"
type="Amasty\AdminActionsLog\Model\LoginAttempt\Repository"/>
<preference for="Amasty\AdminActionsLog\Api\LoginAttemptManagerInterface"
type="Amasty\AdminActionsLog\Model\LoginAttempt\LoginAttemptManager"/>
<preference for="Amasty\AdminActionsLog\Api\Data\LoginAttemptSearchResultsInterface"
type="Amasty\AdminActionsLog\Model\LoginAttempt\LoginAttemptSearchResults"/>
<preference for="Amasty\AdminActionsLog\Api\Data\VisitHistoryDetailInterface"
type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryDetail"/>
<preference for="Amasty\AdminActionsLog\Api\Data\VisitHistoryEntryInterface"
type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryEntry"/>
<preference for="Amasty\AdminActionsLog\Api\VisitHistoryEntryRepositoryInterface"
type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\Repository"/>
<preference for="Amasty\AdminActionsLog\Api\VisitHistoryManagerInterface"
type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryManager"/>
<preference for="Amasty\AdminActionsLog\Api\Data\VisitHistoryEntrySearchResultsInterface"
type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\VisitHistoryEntrySearchResults"/>
<preference for="Amasty\AdminActionsLog\Model\VisitHistoryEntry\DetailLoaderInterface"
type="Amasty\AdminActionsLog\Model\VisitHistoryEntry\Detail\FullDetailLoader"/>
<preference for="Amasty\AdminActionsLog\Notification\Type\Email\ConfigInterface"
type="Amasty\AdminActionsLog\Notification\Type\Email\Config"/>
<!-- Preferences End -->
<type name="Amasty\AdminActionsLog\Ui\Component\Listing\Column\LogEntryActions">
<arguments>
<argument name="availablePreviewTypes" xsi:type="array">
<item name="edit" xsi:type="const">Amasty\AdminActionsLog\Model\OptionSource\LogEntryTypes::TYPE_EDIT</item>
<item name="new" xsi:type="const">Amasty\AdminActionsLog\Model\OptionSource\LogEntryTypes::TYPE_NEW</item>
<item name="restore" xsi:type="const">Amasty\AdminActionsLog\Model\OptionSource\LogEntryTypes::TYPE_RESTORE</item>
</argument>
</arguments>
</type>
</config>
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="amaudit_email_notifications_successful_log_mailing_template"
label="Send audit log to the configured email"
file="amaudit_successful_log_mailing_template.html"
type="html"
module="Amasty_AdminActionsLog"
area="adminhtml"
/>
<template id="amaudit_email_notifications_unsuccessful_log_mailing_template"
label="Send unsuccessful audit log to the configured email"
file="amaudit_unsuccessful_log_mailing_template.html"
type="html"
module="Amasty_AdminActionsLog"
area="adminhtml"
/>
<template id="amaudit_email_notifications_suspicious_log_mailing_template"
label="Send suspicious audit log to the configured email"
file="amaudit_suspicious_log_mailing_template.html"
type="html"
module="Amasty_AdminActionsLog"
area="adminhtml"
/>
</config>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Amasty_AdminActionsLog"/>
</config>