mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-03 00:58:50 +01:00
WIP: add user role check optimization to user principal check, update type comparisons
This commit is contained in:
parent
0ad6f5cdd1
commit
60fbc40ec9
19 changed files with 481 additions and 71 deletions
|
|
@ -334,10 +334,8 @@ describe('Prompt ACL Permissions', () => {
|
|||
productionId: new ObjectId(),
|
||||
});
|
||||
|
||||
// Add editor to the editors group
|
||||
await Group.findByIdAndUpdate(testGroups.editors._id, {
|
||||
$push: { memberIds: testUsers.editor._id },
|
||||
});
|
||||
const { addUserToGroup } = require('~/models');
|
||||
await addUserToGroup(testUsers.editor._id, testGroups.editors._id);
|
||||
|
||||
const prompt = await promptFns.savePrompt({
|
||||
author: testUsers.owner._id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue