fix create website / teams permissions
This commit is contained in:
@@ -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} />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user