mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🗞️ refactor: Apply Role Permissions at Startup only if Missing or Configured
This commit is contained in:
parent
d07c2b3475
commit
53c31b85d0
7 changed files with 355 additions and 440 deletions
|
|
@ -5,7 +5,7 @@ jest.mock('~/models', () => ({
|
|||
}));
|
||||
jest.mock('~/models/Role', () => ({
|
||||
updateAccessPermissions: jest.fn(),
|
||||
getRoleByName: jest.fn(),
|
||||
getRoleByName: jest.fn().mockResolvedValue(null),
|
||||
updateRoleByName: jest.fn(),
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue