@develit-io/backend-sdk 5.39.3 → 5.39.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -558,8 +558,8 @@ const ip = () => {
|
|
|
558
558
|
message: "Failed to retrieve organization."
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
if (organization.
|
|
562
|
-
if (!organization.
|
|
561
|
+
if (organization.ipAuthorization && context.env.ENVIRONMENT !== "localhost") {
|
|
562
|
+
if (!organization.authorizedIps.map((ip2) => ip2.ip).includes(requestIp)) {
|
|
563
563
|
throw new HTTPException(404, {
|
|
564
564
|
message: "Forbidden"
|
|
565
565
|
});
|