mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-28 22:48:45 +00:00
refactor: simplify user permission checks across application
This commit is contained in:
@@ -328,7 +328,7 @@ const Project = (
|
||||
</CardTitle>
|
||||
<CardDescription>{data?.description}</CardDescription>
|
||||
</CardHeader>
|
||||
{(auth?.role === "owner" || auth?.user?.canCreateServices) && (
|
||||
{(auth?.role === "owner" || auth?.canCreateServices) && (
|
||||
<div className="flex flex-row gap-4 flex-wrap">
|
||||
<ProjectEnvironment projectId={projectId}>
|
||||
<Button variant="outline">Project Environment</Button>
|
||||
|
||||
Reference in New Issue
Block a user