mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
Merge pull request #3275 from Dokploy/3274-null-server-ip
fix(auth): update admin check to safely access user property
This commit is contained in:
@@ -42,7 +42,7 @@ const { handler, api } = betterAuth({
|
||||
},
|
||||
});
|
||||
|
||||
if (admin) {
|
||||
if (admin?.user) {
|
||||
return [
|
||||
...(admin.user.serverIp
|
||||
? [`http://${admin.user.serverIp}:3000`]
|
||||
|
||||
Reference in New Issue
Block a user