Skip to content

Commit

Permalink
Fix create records and listing companies for various types of permiss…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
rskrzypczak committed Feb 22, 2023
1 parent 22013f8 commit a895cae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/Controller/EditViewTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @copyright YetiForce S.A.
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Mariusz Krzaczkowski <[email protected]>
* @author Radosław Skrzypczak <[email protected]>
*/

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

/** @var string Action name */
protected $actionName;

/**
* Check permission.
*
Expand Down
3 changes: 2 additions & 1 deletion app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @copyright YetiForce S.A.
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Mariusz Krzaczkowski <[email protected]>
* @author Radosław Skrzypczak <[email protected]>
*/

namespace App;
Expand Down Expand Up @@ -103,7 +104,7 @@ public function getModulesList(): array
*/
public function getCompanies()
{
if ($this->isEmpty('type') || $this->get('type') < 3) {
if ($this->isEmpty('type') || !\in_array($this->get('type'), [3, 4])) {
return false;
}
$companies = Session::get('Companies');
Expand Down
4 changes: 2 additions & 2 deletions config/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Version
/**
* @var string Application version.
*/
const APP = '6.4.5';
const APP = '6.4.6';
/**
* @var string Date of publication of the application.
*/
const DATE = '2022.10.12';
const DATE = '2023.02.22';
}

0 comments on commit a895cae

Please sign in to comment.