changed badly named permission type to permission category because type should only be read/write/...

This commit is contained in:
Dennis Eichhorn 2022-03-17 23:01:30 +01:00
parent 5d9daf1ca6
commit efd1ecd5f9
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php declare(strict_types=1); <?php declare(strict_types=1);
use Modules\Shop\Controller\ShopController; use Modules\Shop\Controller\ShopController;
use Modules\Shop\Models\PermissionState; use Modules\Shop\Models\PermissionCategory;
use phpOMS\Account\PermissionType; use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
@ -13,7 +13,7 @@ return [
'permission' => [ 'permission' => [
'module' => ShopController::NAME, 'module' => ShopController::NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::SHOP, 'state' => PermissionCategory::SHOP,
], ],
], ],
], ],

View File

@ -24,7 +24,7 @@ use phpOMS\Stdlib\Base\Enum;
* @link https://karaka.app * @link https://karaka.app
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class PermissionState extends Enum abstract class PermissionCategory extends Enum
{ {
public const ARTICLE = 1; public const ARTICLE = 1;