MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / PermissionTab

Function PermissionTab

packages/ui/src/ui-component/button/RBACButtons.jsx:47–55  ·  view source on GitHub ↗
({ permissionId, display, ...props })

Source from the content-addressed store, hash-verified

45}
46
47export const PermissionTab = ({ permissionId, display, ...props }) => {
48 const { hasPermission, hasDisplay } = useAuth()
49
50 if (!hasPermission(permissionId) || !hasDisplay(display)) {
51 return null
52 }
53
54 return <Tab {...props} />
55}
56
57export const PermissionMenuItem = ({ permissionId, display, ...props }) => {
58 const { hasPermission, hasDisplay } = useAuth()

Callers

nothing calls this directly

Calls 3

useAuthFunction · 0.90
hasPermissionFunction · 0.85
hasDisplayFunction · 0.85

Tested by

no test coverage detected