mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
We're migrating to ESM, which will allow us to import the latest versions of our dependencies. Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
24 lines
786 B
TypeScript
24 lines
786 B
TypeScript
import type { IPrivateProjectChecker } from './privateProjectCheckerType.js';
|
|
import {
|
|
ALL_PROJECT_ACCESS,
|
|
type ProjectAccess,
|
|
} from './privateProjectStore.js';
|
|
|
|
export class FakePrivateProjectChecker implements IPrivateProjectChecker {
|
|
async filterUserAccessibleProjects(
|
|
userId: number,
|
|
projects: string[],
|
|
): Promise<string[]> {
|
|
return projects;
|
|
}
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async getUserAccessibleProjects(userId: number): Promise<ProjectAccess> {
|
|
return ALL_PROJECT_ACCESS;
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
hasAccessToProject(userId: number, projectId: string): Promise<boolean> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
}
|