Remove owner-only restriction from admin panel menu link
cgen-f3423e5a977247e7ae67a7effa7f58db
This commit is contained in:
parent
d2f63ce70b
commit
86f568873c
1 changed files with 6 additions and 8 deletions
|
|
@ -424,14 +424,12 @@ export default function CodeLayout({ children, hideFooter }: LayoutProps) {
|
|||
Account Settings
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
{isOwner && (
|
||||
<DropdownMenuItem asChild>
|
||||
<Link to="/admin" className="cursor-pointer">
|
||||
<Settings className="mr-2 h-4 w-4" />
|
||||
Admin Panel
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
<DropdownMenuItem asChild>
|
||||
<Link to="/admin" className="cursor-pointer">
|
||||
<Settings className="mr-2 h-4 w-4" />
|
||||
Admin Panel
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem
|
||||
className="cursor-pointer"
|
||||
|
|
|
|||
Loading…
Reference in a new issue