mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-24 00:25:27 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user