diff --git a/Models/Department.php b/Models/Department.php
index 5039ae2..de23f5b 100755
--- a/Models/Department.php
+++ b/Models/Department.php
@@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface;
* @link https://orange-management.org
* @since 1.0.0
*/
-class Department implements ArrayableInterface, \JsonSerializable
+class Department implements \JsonSerializable, ArrayableInterface
{
/**
* Article ID.
diff --git a/Models/PermissionState.php b/Models/PermissionState.php
index a2fbc06..c6988b2 100755
--- a/Models/PermissionState.php
+++ b/Models/PermissionState.php
@@ -27,7 +27,10 @@ use phpOMS\Stdlib\Base\Enum;
abstract class PermissionState extends Enum
{
public const UNIT = 1;
+
public const DEPARTMENT = 2;
+
public const POSITION = 3;
+
public const ORGANIGRAM = 4;
}
diff --git a/Models/Position.php b/Models/Position.php
index e04c71c..d21cead 100755
--- a/Models/Position.php
+++ b/Models/Position.php
@@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface;
* @link https://orange-management.org
* @since 1.0.0
*/
-class Position implements ArrayableInterface, \JsonSerializable
+class Position implements \JsonSerializable, ArrayableInterface
{
/**
* Article ID.
diff --git a/Models/SettingsEnum.php b/Models/SettingsEnum.php
index 2b59b51..6fe35b0 100755
--- a/Models/SettingsEnum.php
+++ b/Models/SettingsEnum.php
@@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum;
abstract class SettingsEnum extends Enum
{
public const GROUP_GENERATE_AUTOMATICALLY_UNIT = '1004700001';
+
public const GROUP_GENERATE_AUTOMATICALLY_DEPARTMENT = '1004700002';
+
public const GROUP_GENERATE_AUTOMATICALLY_POSITION = '1004700003';
}
diff --git a/Models/Status.php b/Models/Status.php
index 1113b02..ca36145 100755
--- a/Models/Status.php
+++ b/Models/Status.php
@@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum;
abstract class Status extends Enum
{
public const ACTIVE = 1;
+
public const INACTIVE = 2;
+
public const HIDDEN = 4;
}
diff --git a/Models/Unit.php b/Models/Unit.php
index 6ef5e19..fb0681f 100755
--- a/Models/Unit.php
+++ b/Models/Unit.php
@@ -26,7 +26,7 @@ use phpOMS\Contract\ArrayableInterface;
* @link https://orange-management.org
* @since 1.0.0
*/
-class Unit implements ArrayableInterface, \JsonSerializable
+class Unit implements \JsonSerializable, ArrayableInterface
{
/**
* Article ID.
diff --git a/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup.tpl.php b/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup.tpl.php
index bd9747d..b826a04 100755
--- a/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup.tpl.php
+++ b/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup.tpl.php
@@ -1,6 +1,6 @@
= $this->getHtml('Department', 'Organization') ?>
= $this->getHtml('Department', 'Organization'); ?>
= $this->getHtml('Position', 'Organization') ?>
= $this->getHtml('Position', 'Organization'); ?>
= $this->getHtml('Unit', 'Organization') ?>
= $this->getHtml('Unit', 'Organization'); ?>