feat: Show 'Edit' button when visiting share link as signed in user with permission (#1980)

This commit is contained in:
Tom Moor
2021-03-23 19:22:15 -07:00
committed by GitHub
parent 97158b1337
commit 877c01f723
6 changed files with 79 additions and 61 deletions

View File

@ -176,6 +176,7 @@ describe("#documents.info", () => {
expect(body.data.id).toEqual(document.id);
expect(body.data.createdBy.id).toEqual(user.id);
expect(body.data.updatedBy.id).toEqual(user.id);
expect(body.policies[0].abilities.update).toEqual(true);
});
it("should return draft document from shareId with token", async () => {