mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-25 02:58:41 +00:00
changed badly named permission type to permission category because type should only be read/write/...
This commit is contained in:
parent
a1a9bb6ce2
commit
a9fcff068c
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
use Modules\Help\Controller\SearchController;
|
||||
use Modules\Help\Models\PermissionState;
|
||||
use Modules\Help\Models\PermissionCategory;
|
||||
use phpOMS\Account\PermissionType;
|
||||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => SearchController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_MODULE,
|
||||
'state' => PermissionCategory::HELP_MODULE,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -36,7 +36,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => SearchController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_MODULE,
|
||||
'state' => PermissionCategory::HELP_MODULE,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -47,7 +47,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => SearchController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_DEVELOPER,
|
||||
'state' => PermissionCategory::HELP_DEVELOPER,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -58,7 +58,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => SearchController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_MODULE,
|
||||
'state' => PermissionCategory::HELP_MODULE,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
use Modules\Help\Controller\BackendController;
|
||||
use Modules\Help\Models\PermissionState;
|
||||
use Modules\Help\Models\PermissionCategory;
|
||||
use phpOMS\Account\PermissionType;
|
||||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_GENERAL,
|
||||
'state' => PermissionCategory::HELP_GENERAL,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -36,7 +36,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_MODULE,
|
||||
'state' => PermissionCategory::HELP_MODULE,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -47,7 +47,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_MODULE,
|
||||
'state' => PermissionCategory::HELP_MODULE,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -58,7 +58,7 @@ return [
|
|||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::HELP_DEVELOPER,
|
||||
'state' => PermissionCategory::HELP_DEVELOPER,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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 HELP_GENERAL = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user