[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-09-12 13:46:33 +00:00
committed by GitHub
parent 30b28afbac
commit bdf0a932fe
2 changed files with 4 additions and 3 deletions

View File

@@ -75,8 +75,9 @@ export const AdvancedEnvironmentSelector = ({
const { data: currentUser } = api.user.get.useQuery();
// Check if user can create environments
const canCreateEnvironments = currentUser?.role === "owner" ||
currentUser?.role === "admin" ||
const canCreateEnvironments =
currentUser?.role === "owner" ||
currentUser?.role === "admin" ||
currentUser?.canCreateEnvironments === true;
const haveServices =

View File

@@ -279,7 +279,7 @@ export const checkEnvironmentCreationPermission = async (
) => {
// Get user's member record
const member = await findMemberById(userId, organizationId);
if (!member) {
throw new TRPCError({
code: "UNAUTHORIZED",