mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-10 12:38:52 +01:00
WIP: add user role check optimization to user principal check, update type comparisons
This commit is contained in:
parent
fbd05875cf
commit
54285e08c1
19 changed files with 481 additions and 71 deletions
|
|
@ -43,7 +43,7 @@ describe('canAccessAgentResource middleware', () => {
|
|||
});
|
||||
|
||||
req = {
|
||||
user: { id: testUser._id.toString(), role: 'test-role' },
|
||||
user: { id: testUser._id, role: testUser.role },
|
||||
params: {},
|
||||
};
|
||||
res = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue