mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 18:00:17 +01:00
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:
commit
e5f820bd49
@ -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} />
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user