Skip to content
Snippets Groups Projects
Commit 68bb697f authored by xaralis's avatar xaralis
Browse files

fix: display chairman actions on home only for chairman

parent 10de10d1
Branches
No related tags found
No related merge requests found
......@@ -143,6 +143,8 @@ const Home = () => {
return <BreakInProgress />;
}
const displayActions = isAuthenticated && user.role === "chairman";
return (
<>
<article className="container container--wide pt-8 lg:py-24 cf2021">
......@@ -151,6 +153,7 @@ const Home = () => {
<h1 className="head-alt-md lg:head-alt-lg mb-0">
Bod č. {programEntry.number}: {programEntry.title}
</h1>
{displayActions && (
<DropdownMenu right triggerSize="lg" className="pl-4">
<DropdownMenuItem
onClick={() => setShowProgramEditModal(true)}
......@@ -184,8 +187,8 @@ const Home = () => {
titleSize="base"
iconSize="base"
/>
)}
</DropdownMenu>
)}
</div>
<iframe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment