mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-31 15:48:51 +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
|
|
@ -340,6 +340,7 @@ const getUserEffectivePermissions = async (req, res) => {
|
|||
|
||||
const permissionBits = await getEffectivePermissions({
|
||||
userId,
|
||||
role: req.user.role,
|
||||
resourceType,
|
||||
resourceId,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue