mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
feat(user-management): implement staff reference permissions for various controllers and update sidebar permissions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { SidebarItem } from "@/components/layout/types";
|
||||
import { ruleEngineViewKey } from "@/lib/permissions";
|
||||
import type { RuleEngineResourceSlug } from "@/types/rule-engine";
|
||||
|
||||
export type RuleEngineNavCategory = "configuration" | "rules";
|
||||
@@ -787,6 +788,7 @@ export const getCategorySidebarChildren = (
|
||||
RULE_ENGINE_RESOURCES.filter((r) => r.category === category).map((r) => ({
|
||||
label: r.label,
|
||||
href: ruleEngineResourcePath(r.slug),
|
||||
permission: ruleEngineViewKey(r.slug),
|
||||
}));
|
||||
|
||||
export const DEFAULT_CONFIGURATION_SLUG: RuleEngineResourceSlug = "cargo-types";
|
||||
|
||||
Reference in New Issue
Block a user