Skip to content

Commit

Permalink
Merge pull request xibosignage#540 from PeterMis/bugfix/1.8.13-pack3
Browse files Browse the repository at this point in the history
Bugfix/1.8.13 pack3
  • Loading branch information
PeterMis committed Apr 15, 2019
2 parents 23c854f + c71a978 commit 805eb71
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 0 additions & 6 deletions lib/Controller/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ public function collect()

public function debugOn()
{
if ($this->getUser()->userTypeId != 1)
throw new AccessDeniedException();

$this->getConfig()->ChangeSetting('audit', 'DEBUG');
$this->getConfig()->ChangeSetting('ELEVATE_LOG_UNTIL', $this->getDate()->parse()->addMinutes(30)->format('U'));

Expand All @@ -213,9 +210,6 @@ public function debugOn()

public function debugOff()
{
if ($this->getUser()->userTypeId != 1)
throw new AccessDeniedException();

$this->getConfig()->ChangeSetting('audit', $this->getConfig()->GetSetting('RESTING_LOG_LEVEL'));
$this->getConfig()->ChangeSetting('ELEVATE_LOG_UNTIL', '');

Expand Down
9 changes: 6 additions & 3 deletions lib/Entity/Display.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ public function delete()
private function add()
{
$this->displayId = $this->getStore()->insert('
INSERT INTO display (display, auditingUntil, defaultlayoutid, license, licensed, inc_schedule, email_alert, alert_timeout, xmrChannel, xmrPubKey, lastCommandSuccess, macAddress)
VALUES (:display, :auditingUntil, :defaultlayoutid, :license, :licensed, :inc_schedule, :email_alert, :alert_timeout, :xmrChannel, :xmrPubKey, :lastCommandSuccess, :macAddress)
INSERT INTO display (display, auditingUntil, defaultlayoutid, license, licensed, inc_schedule, email_alert, alert_timeout, xmrChannel, xmrPubKey, lastCommandSuccess, macAddress, client_type, client_version, client_code)
VALUES (:display, :auditingUntil, :defaultlayoutid, :license, :licensed, :inc_schedule, :email_alert, :alert_timeout, :xmrChannel, :xmrPubKey, :lastCommandSuccess, :macAddress, :clientType, :clientVersion, :clientCode)
', [
'display' => $this->display,
'auditingUntil' => 0,
Expand All @@ -658,7 +658,10 @@ private function add()
'xmrChannel' => $this->xmrChannel,
'xmrPubKey' => $this->xmrPubKey,
'lastCommandSuccess' => $this->lastCommandSuccess,
'macAddress' => $this->macAddress
'macAddress' => $this->macAddress,
'clientType' => $this->clientType,
'clientVersion' => $this->clientVersion,
'clientCode' => $this->clientCode,
]);

$displayGroup = $this->displayGroupFactory->createEmpty();
Expand Down
2 changes: 1 addition & 1 deletion lib/Factory/AuditLogFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function query($sortOrder = null, $filterBy = [])
}

if ($this->getSanitizer()->getString('userName', $filterBy) != null) {
$body .= ' AND `auditlog`.userName LIKE :userName ';
$body .= ' AND `user`.userName LIKE :userName ';
$params['userName'] = '%' . $this->getSanitizer()->getString('userName', $filterBy) . '%';
}

Expand Down
2 changes: 1 addition & 1 deletion views/base.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ translate.jsShortLocale }}">
<head>
<title>{{ theme.getThemeConfig("theme_title") }}</title>
<meta charset="utf-8">
Expand Down

0 comments on commit 805eb71

Please sign in to comment.