@develit-io/backend-sdk 5.39.2 → 5.39.3
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 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -558,9 +558,8 @@ const ip = () => {
|
|
|
558
558
|
message: "Failed to retrieve organization."
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
if (!organization.payload.organization.authorizedIps.map((ip2) => ip2.ip).includes(requestIp)) {
|
|
561
|
+
if (organization.organization.ipAuthorization && context.env.ENVIRONMENT !== "localhost") {
|
|
562
|
+
if (!organization.organization.authorizedIps.map((ip2) => ip2.ip).includes(requestIp)) {
|
|
564
563
|
throw new HTTPException(404, {
|
|
565
564
|
message: "Forbidden"
|
|
566
565
|
});
|