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.

Update page-client.tsx

Kiran Kcf98c46f838f
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx
index d783b7eaf8..33cdef2ccf 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx
@@ -373,7 +373,10 @@ function RoleCell({
role,
});
- const isDisabled = isStaging || !isCurrentUserOwner || isCurrentUser;
+ // Only owners can change roles
+ // Can't change your own role
+ // Can't change roles in staging workspaces
+ const isDisabled = !isCurrentUserOwner || isCurrentUser || isStaging;
return (
<>