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:29 +01:00
parent a5b780292d
commit d0db6e7e2c
3 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@
declare(strict_types=1);
use Modules\Draw\Controller\ApiController;
use Modules\Draw\Models\PermissionState;
use Modules\Draw\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
@ -25,7 +25,7 @@ return [
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::DRAW,
'state' => PermissionCategory::DRAW,
],
],
],

View File

@ -13,7 +13,7 @@
declare(strict_types=1);
use Modules\Draw\Controller\BackendController;
use Modules\Draw\Models\PermissionState;
use Modules\Draw\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
@ -25,7 +25,7 @@ return [
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::DRAW,
'state' => PermissionCategory::DRAW,
],
],
[
@ -34,7 +34,7 @@ return [
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::DRAW,
'state' => PermissionCategory::DRAW,
],
],
],
@ -45,7 +45,7 @@ return [
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DRAW,
'state' => PermissionCategory::DRAW,
],
],
],
@ -56,7 +56,7 @@ return [
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DRAW,
'state' => PermissionCategory::DRAW,
],
],
[
@ -65,7 +65,7 @@ return [
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DRAW,
'state' => PermissionCategory::DRAW,
],
],
],

View File

@ -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 DRAW = 1;
}