Convert isViewer and isAdmin to getters (#6724)

This commit is contained in:
Tom Moor
2024-03-28 17:00:35 -06:00
committed by GitHub
parent 278b81a8fb
commit 0dede0b56e
20 changed files with 113 additions and 139 deletions

View File

@@ -1,4 +1,4 @@
import { CollectionPermission } from "@shared/types";
import { CollectionPermission, UserRole } from "@shared/types";
import { Document } from "@server/models";
import {
buildUser,
@@ -39,7 +39,7 @@ describe("read_write collection", () => {
const team = await buildTeam();
const user = await buildUser({
teamId: team.id,
isViewer: true,
role: UserRole.Viewer,
});
const collection = await buildCollection({
teamId: team.id,