Skip to content

Commit

Permalink
do not record requests to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish3 committed Mar 16, 2023
1 parent d75399e commit 42ff7f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Activity Log

## 1.1.4 - 2023-03-16
### Fixed
- Do not record requests to plugin

## 1.1.3 - 2022-11-07
### Fixed
- Fix error when saving setting [#3](https://github.com/matfish2/craft-activity-log/issues/3)
Expand Down
4 changes: 4 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ private function shouldRecord(): bool
return false;
}

if ($request->getPathInfo()==='activity-logs') {
return false;
}

$isCp = $request->isCpRequest;
$isAjax = $this->isAjax($request);
$settings = self::getInstance()->getSettings();
Expand Down

0 comments on commit 42ff7f8

Please sign in to comment.