[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-09-12 13:49:51 +00:00
committed by GitHub
parent c355eafc95
commit 65c5974b4f
2 changed files with 4 additions and 3 deletions

View File

@@ -62,8 +62,9 @@ export const AdvancedEnvironmentSelector = ({
const { data: currentUser } = api.user.get.useQuery();
// Check if user can delete environments
const canDeleteEnvironments = currentUser?.role === "owner" ||
currentUser?.role === "admin" ||
const canDeleteEnvironments =
currentUser?.role === "owner" ||
currentUser?.role === "admin" ||
currentUser?.canDeleteEnvironments === true;
// Form states

View File

@@ -264,7 +264,7 @@ export const checkEnvironmentDeletionPermission = async (
organizationId: string,
) => {
const member = await findMemberById(userId, organizationId);
if (!member) {
throw new TRPCError({
code: "UNAUTHORIZED",