mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-20 02:58:53 +00:00
refactor: simplify user permission checks across application
This commit is contained in:
+1
-2
@@ -178,8 +178,7 @@ const Service = (
|
||||
|
||||
<div className="flex flex-row gap-2 justify-end">
|
||||
<UpdateApplication applicationId={applicationId} />
|
||||
{(auth?.role === "owner" ||
|
||||
auth?.user?.canDeleteServices) && (
|
||||
{(auth?.role === "owner" || auth?.canDeleteServices) && (
|
||||
<DeleteService id={applicationId} type="application" />
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user