mirror of
https://github.com/Karaka-Management/oms-Shop.git
synced 2026-01-11 10:38:40 +00:00
changed badly named permission type to permission category because type should only be read/write/...
This commit is contained in:
parent
5d9daf1ca6
commit
efd1ecd5f9
|
|
@ -1,7 +1,7 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use Modules\Shop\Controller\ShopController;
|
||||
use Modules\Shop\Models\PermissionState;
|
||||
use Modules\Shop\Models\PermissionCategory;
|
||||
use phpOMS\Account\PermissionType;
|
||||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => ShopController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::SHOP,
|
||||
'state' => PermissionCategory::SHOP,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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 ARTICLE = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user