Merge pull request #2445 from uzzii-21/Hide-Add-Website-button-for-View-Only-users

fix: Hide Add Website button for View Only users
This commit is contained in:
Mike Cao 2023-12-21 14:06:11 -10:00 committed by GitHub
commit e5f820bd49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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} />
</>
);