mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-24 11:24:10 +01:00
🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)
This commit is contained in:
parent
6c9a29b6cf
commit
f55cdc9b7f
99 changed files with 11321 additions and 621 deletions
11
packages/data-schemas/src/models/accessRole.ts
Normal file
11
packages/data-schemas/src/models/accessRole.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import accessRoleSchema from '~/schema/accessRole';
|
||||
import type * as t from '~/types';
|
||||
|
||||
/**
|
||||
* Creates or returns the AccessRole model using the provided mongoose instance and schema
|
||||
*/
|
||||
export function createAccessRoleModel(mongoose: typeof import('mongoose')) {
|
||||
return (
|
||||
mongoose.models.AccessRole || mongoose.model<t.IAccessRole>('AccessRole', accessRoleSchema)
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue