mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
fix: Type Public ACL Lookup
This commit is contained in:
parent
b367bf9644
commit
db99016d87
1 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
|||
import { Types } from 'mongoose';
|
||||
import { createMethods, logger } from '@librechat/data-schemas';
|
||||
import { AccessRoleIds, PermissionBits, PrincipalType, ResourceType } from 'librechat-data-provider';
|
||||
import {
|
||||
AccessRoleIds,
|
||||
PermissionBits,
|
||||
PrincipalType,
|
||||
ResourceType,
|
||||
} from 'librechat-data-provider';
|
||||
import type { AllMethods, IAclEntry } from '@librechat/data-schemas';
|
||||
import type { ClientSession, DeleteResult } from 'mongoose';
|
||||
|
||||
|
|
@ -388,7 +393,7 @@ export class AccessControlService {
|
|||
}): Promise<boolean> {
|
||||
try {
|
||||
this.validateResourceType(resourceType);
|
||||
const publicIds = await this._dbMethods.findPublicResourceIds(
|
||||
const publicIds: Types.ObjectId[] = await this._dbMethods.findPublicResourceIds(
|
||||
resourceType,
|
||||
PermissionBits.VIEW,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue