fix: Allow admin edit/update access to all collections (#3335)

* fix: Allow admin edit/update access to all collections

* test
This commit is contained in:
Tom Moor
2022-04-06 16:49:07 -07:00
committed by GitHub
parent dbfdcd6d23
commit 448f94ed04
2 changed files with 15 additions and 6 deletions

View File

@@ -270,14 +270,14 @@ describe("#collections.move", () => {
describe("#collections.export", () => {
it("should not allow export of private collection not a member", async () => {
const { admin } = await seed();
const { user } = await seed();
const collection = await buildCollection({
permission: null,
teamId: admin.teamId,
teamId: user.teamId,
});
const res = await server.post("/api/collections.export", {
body: {
token: admin.getJwtToken(),
token: user.getJwtToken(),
id: collection.id,
},
});