0.0.8.0
This commit is contained in:
+2
-1
@@ -15,6 +15,7 @@ import { format } from "date-fns"
|
||||
import { useSession } from "next-auth/react"
|
||||
import { useSearchParams } from "next/navigation"
|
||||
import { CollaboratorDialog } from "@/components/tree/collaborator-dialog"
|
||||
import { permissions } from "@/lib/permissions"
|
||||
|
||||
interface ActivityLog {
|
||||
id: string
|
||||
@@ -191,7 +192,7 @@ export default function DashboardPage() {
|
||||
{session && currentTree?.ownerId === session.user?.id && (
|
||||
<CollaboratorDialog />
|
||||
)}
|
||||
{(currentTree?.currentUserRole === "OWNER" || currentTree?.currentUserRole === "EDITOR") && (
|
||||
{permissions.canCreate(currentTree?.currentUserRole) && (
|
||||
<Link href="/members/new">
|
||||
<Button className="gap-2 bg-primary text-primary-foreground hover:bg-primary/90">
|
||||
<UserPlus className="h-4 w-4" />
|
||||
|
||||
Reference in New Issue
Block a user