fix: Type Public ACL Lookup

This commit is contained in:
Danny Avila 2026-06-03 10:10:32 -04:00
parent b367bf9644
commit db99016d87

View file

@ -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,
);