Skip to content

Commit b4388c3

Browse files
modify the condition to check non production env
1 parent 32c3a66 commit b4388c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/staging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { addOrUpdate } = require("../models/users");
33
const updateRoles = async (req, res) => {
44
try {
55
const userData = await req.userData;
6-
if (process.env.NODE_ENV !== "staging" || process.env.NODE_ENV !== "development") {
6+
if (process.env.NODE_ENV !== "production") {
77
return res.status(403).json({
88
message: "FORBIDDEN | To be used only in staging and development",
99
});

0 commit comments

Comments
 (0)