mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-06 17:46:23 +00:00
feat: add system task runner (#5680)
This commit is contained in:
+6
@@ -28,6 +28,12 @@ type BaseNavItem = {
|
||||
icon?: React.ElementType
|
||||
activeUrls?: (LinkProps['to'] | (string & {}))[]
|
||||
configUrls?: (LinkProps['to'] | (string & {}))[]
|
||||
/**
|
||||
* Minimum role required to see this item in the sidebar. When set, the item
|
||||
* is hidden for users whose role is below this threshold (see
|
||||
* `useSidebarView`). Route-level guards still enforce access independently.
|
||||
*/
|
||||
requiredRole?: number
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user