Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix: Hide Add Website button for View Only users

Uzair Ahmed778beafae24e
diff --git a/src/app/(main)/settings/websites/Websites.tsx b/src/app/(main)/settings/websites/Websites.tsx
index 5f88ae337..89c509ea1 100644
--- a/src/app/(main)/settings/websites/Websites.tsx
+++ b/src/app/(main)/settings/websites/Websites.tsx
@@ -5,10 +5,9 @@ import WebsitesHeader from './WebsitesHeader';
export default function Websites() {
const { user } = useUser();
-
return (
<>
- <WebsitesHeader />
+ <WebsitesHeader showActions={user.role !== 'view-only'} />
<WebsitesDataTable userId={user.id} />
</>
);