Don't show the edit button if the user can't edit/delete any links

This commit is contained in:
Isaac Wise
2024-02-12 01:54:47 -06:00
parent 1cff2db876
commit a3c487d074
4 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ export default function Index() {
<div className="flex justify-between items-center gap-5">
<p>Showing {activeCollection?._count?.links} results</p>
<div className="flex items-center gap-2">
{links.length > 0 && (
{links.length > 0 && (permissions === true || permissions?.canUpdate || permissions?.canDelete) && (
<div
role="button"
onClick={() => {