This method returns information for a document with a specific
- ID. Following identifiers are allowed:
+ ID. The following identifiers are allowed:
@@ -340,11 +340,8 @@ export default function Pricing() {
-
+
+
@@ -597,6 +594,34 @@ export default function Pricing() {
+
+
+
+ List all your currently shared document links.
+
+
+
+
+
+
+ Creates a new share link that can be used by anyone to access a
+ document. If you request multiple shares for the same document
+ with the same user the same share will be returned.
+
+
+
+
+
+
+
+
+ Makes the share link inactive so that it can no longer be used to
+ access the document.
+
+
+
+
+
diff --git a/server/policies/share.js b/server/policies/share.js
index 3e2d1121..62151ed0 100644
--- a/server/policies/share.js
+++ b/server/policies/share.js
@@ -7,7 +7,7 @@ const { allow } = policy;
allow(User, ['read'], Share, (user, share) => user.teamId === share.teamId);
allow(User, ['update'], Share, (user, share) => false);
-allow(User, ['delete'], Share, (user, share) => {
+allow(User, ['revoke'], Share, (user, share) => {
if (!share || user.teamId !== share.teamId) return false;
if (user.id === share.userId) return true;
if (user.isAdmin) return true;