From 364df3fb8573a6626a4ab2d9ea0d5e86d11a21df Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 17 Mar 2022 23:01:30 +0100 Subject: [PATCH] changed badly named permission type to permission category because type should only be read/write/... --- Admin/Routes/Web/Backend.php | 18 +++++++++--------- ...missionState.php => PermissionCategory.php} | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) rename Models/{PermissionState.php => PermissionCategory.php} (90%) diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 9bda878..570b86f 100755 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -13,7 +13,7 @@ declare(strict_types=1); use Modules\Messages\Controller\BackendController; -use Modules\Messages\Models\PermissionState; +use Modules\Messages\Models\PermissionCategory; use phpOMS\Account\PermissionType; use phpOMS\Router\RouteVerb; @@ -25,7 +25,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -36,7 +36,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -47,7 +47,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -58,7 +58,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -69,7 +69,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -80,7 +80,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::CREATE, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -91,7 +91,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], @@ -102,7 +102,7 @@ return [ 'permission' => [ 'module' => BackendController::NAME, 'type' => PermissionType::READ, - 'state' => PermissionState::MESSAGE, + 'state' => PermissionCategory::MESSAGE, ], ], ], diff --git a/Models/PermissionState.php b/Models/PermissionCategory.php similarity index 90% rename from Models/PermissionState.php rename to Models/PermissionCategory.php index 9be3e34..9be79f4 100755 --- a/Models/PermissionState.php +++ b/Models/PermissionCategory.php @@ -24,7 +24,7 @@ use phpOMS\Stdlib\Base\Enum; * @link https://karaka.app * @since 1.0.0 */ -abstract class PermissionState extends Enum +abstract class PermissionCategory extends Enum { public const MESSAGE = 1; }