mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-06 17:51:50 +01:00
WIP: pre-granular-permissions commit
feat: Add category and support contact fields to Agent schema and UI components
Revert "feat: Add category and support contact fields to Agent schema and UI components"
This reverts commit c43a52b4c9.
Fix: Update import for renderHook in useAgentCategories.spec.tsx
fix: Update icon rendering in AgentCategoryDisplay tests to use empty spans
refactor: Improve category synchronization logic and clean up AgentConfig component
refactor: Remove unused UI flow translations from translation.json
feat: agent marketplace features
🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)
9 lines
328 B
TypeScript
9 lines
328 B
TypeScript
import groupSchema from '~/schema/group';
|
|
import type * as t from '~/types';
|
|
|
|
/**
|
|
* Creates or returns the Group model using the provided mongoose instance and schema
|
|
*/
|
|
export function createGroupModel(mongoose: typeof import('mongoose')) {
|
|
return mongoose.models.Group || mongoose.model<t.IGroup>('Group', groupSchema);
|
|
}
|