Skip to content
Permalink
Browse files

Merge pull request #489 from dimaw/patch-1

контроль доступа с терминалов
  • Loading branch information...
sergejey committed Mar 18, 2019
2 parents 773c780 + 4081759 commit c000730ac4d6878bd1d769fb619ed71eaa33952f
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/security_rules/security_rules.class.php
@@ -257,8 +257,8 @@ function checkAccess($object_type, $object_id) {
$terminals_matched=false;
if ($session->data['TERMINAL']) {// && !$session->data['TERMINAL_ID']
$terminal = getTerminalsByName($session->data['TERMINAL'], 1);
if ($terminal['ID']) {
$session->data['TERMINAL_ID']=$terminal['ID'];
if ($terminal[0]['ID']) {
$session->data['TERMINAL_ID']=$terminal[0]['ID'];
}
}
$terminal_id=(int)$session->data['TERMINAL_ID'];
@@ -379,4 +379,4 @@ function dbInstall($data) {
* TW9kdWxlIGNyZWF0ZWQgTWF5IDA0LCAyMDEzIHVzaW5nIFNlcmdlIEouIHdpemFyZCAoQWN0aXZlVW5pdCBJbmMgd3d3LmFjdGl2ZXVuaXQuY29tKQ==
*
*/
?>
?>

0 comments on commit c000730

Please sign in to comment.
You can’t perform that action at this time.