Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix

Kiran K9748ee7ce39a
diff --git a/apps/web/lib/api/rbac/resources.ts b/apps/web/lib/api/rbac/resources.ts
index 749a2fba07..202863811a 100644
--- a/apps/web/lib/api/rbac/resources.ts
+++ b/apps/web/lib/api/rbac/resources.ts
@@ -30,6 +30,11 @@ export const RESOURCES: {
key: "workspaces",
description: "Read, update, and delete workspaces",
},
+ {
+ name: "Tokens",
+ key: "tokens",
+ description: "Create, read, update, and delete tokens",
+ },
{
name: "Domains",
key: "domains",
diff --git a/apps/web/ui/modals/add-edit-token-modal.tsx b/apps/web/ui/modals/add-edit-token-modal.tsx
index 5bebb4bb74..8e0600680b 100644
--- a/apps/web/ui/modals/add-edit-token-modal.tsx
+++ b/apps/web/ui/modals/add-edit-token-modal.tsx
@@ -142,23 +142,7 @@ function AddEditTokenModal({
[role, conversionEnabled],
);
- const helpTexts = {
- user: {
- title:
- "This API key will be tied to your user account – if you are removed from the workspace, it will be deleted.",
- cta: "Learn more",
- href: "https://dub.co/docs/api-reference/tokens",
- },
- machine: {
- title: isOwner
- ? "A new bot member will be added to your workspace, and the key will be associated with it. Since the key is not tied to your account, it will not be deleted even if you leave the workspace."
- : "Only the workspace owner can create machine users.",
- cta: "Learn more",
- href: "https://dub.co/docs/api-reference/tokens#machine-users",
- },
- };
-
- const helpText = helpTexts[data.isMachine ? "machine" : "user"];
+ console.log(scopesByResources)
return (
<>