mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
fix create website / teams permissions
This commit is contained in:
parent
8fbd6871f7
commit
490bb11771
5 changed files with 20 additions and 17 deletions
|
|
@ -1,14 +1,11 @@
|
|||
'use client';
|
||||
import WebsitesHeader from 'app/(main)/settings/websites/WebsitesHeader';
|
||||
import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
|
||||
import { useLogin } from 'components/hooks';
|
||||
|
||||
export default function WebsitesPage({ teamId }: { teamId: string; userId: string }) {
|
||||
const { user } = useLogin();
|
||||
|
||||
export default function WebsitesPage({ teamId }: { teamId: string }) {
|
||||
return (
|
||||
<>
|
||||
<WebsitesHeader teamId={teamId} allowCreate={user.role !== 'view-only'} />
|
||||
<WebsitesHeader teamId={teamId} allowCreate={false} />
|
||||
<WebsitesDataTable teamId={teamId} allowEdit={false} />
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue