Skip to content

Commit a895cae

Browse files
committed
Fix create records and listing companies for various types of permissions
1 parent 22013f8 commit a895cae

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

app/Controller/EditViewTrait.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @copyright YetiForce S.A.
99
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
1010
* @author Mariusz Krzaczkowski <[email protected]>
11+
* @author Radosław Skrzypczak <[email protected]>
1112
*/
1213

1314
namespace App\Controller;
@@ -23,9 +24,6 @@ trait EditViewTrait
2324
/** @var array Hidden fields */
2425
protected $hiddenFields = [];
2526

26-
/** @var string Action name */
27-
protected $actionName;
28-
2927
/**
3028
* Check permission.
3129
*

app/User.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @copyright YetiForce S.A.
66
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
77
* @author Mariusz Krzaczkowski <[email protected]>
8+
* @author Radosław Skrzypczak <[email protected]>
89
*/
910

1011
namespace App;
@@ -103,7 +104,7 @@ public function getModulesList(): array
103104
*/
104105
public function getCompanies()
105106
{
106-
if ($this->isEmpty('type') || $this->get('type') < 3) {
107+
if ($this->isEmpty('type') || !\in_array($this->get('type'), [3, 4])) {
107108
return false;
108109
}
109110
$companies = Session::get('Companies');

config/Version.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class Version
1919
/**
2020
* @var string Application version.
2121
*/
22-
const APP = '6.4.5';
22+
const APP = '6.4.6';
2323
/**
2424
* @var string Date of publication of the application.
2525
*/
26-
const DATE = '2022.10.12';
26+
const DATE = '2023.02.22';
2727
}

0 commit comments

Comments
 (0)