mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-17 05:58:41 +00:00
fix handling inactive module
This commit is contained in:
parent
2a3d466a03
commit
5758616eba
|
|
@ -68,6 +68,10 @@ final class ApiController extends Controller
|
||||||
string $ip = null
|
string $ip = null
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
|
if (!$this->active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Using empty string as the data is represented by the current model
|
// Using empty string as the data is represented by the current model
|
||||||
$newString = ''; //StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
$newString = ''; //StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
||||||
$audit = new Audit(
|
$audit = new Audit(
|
||||||
|
|
@ -116,6 +120,10 @@ final class ApiController extends Controller
|
||||||
string $ip = null
|
string $ip = null
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
|
if (!$this->active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
||||||
$newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
$newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
||||||
|
|
||||||
|
|
@ -169,6 +177,10 @@ final class ApiController extends Controller
|
||||||
string $ip = null
|
string $ip = null
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
|
if (!$this->active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
||||||
$audit = new Audit(
|
$audit = new Audit(
|
||||||
new NullAccount($account),
|
new NullAccount($account),
|
||||||
|
|
@ -216,6 +228,10 @@ final class ApiController extends Controller
|
||||||
string $ip = null
|
string $ip = null
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
|
if (!$this->active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Using empty string as the data is represented by the current model
|
// Using empty string as the data is represented by the current model
|
||||||
$newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
$newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
||||||
$audit = new Audit(
|
$audit = new Audit(
|
||||||
|
|
@ -264,6 +280,10 @@ final class ApiController extends Controller
|
||||||
string $ip = null
|
string $ip = null
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
|
if (!$this->active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
||||||
$audit = new Audit(
|
$audit = new Audit(
|
||||||
new NullAccount($account),
|
new NullAccount($account),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user