We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c3a66 commit b4388c3Copy full SHA for b4388c3
controllers/staging.js
@@ -3,7 +3,7 @@ const { addOrUpdate } = require("../models/users");
3
const updateRoles = async (req, res) => {
4
try {
5
const userData = await req.userData;
6
- if (process.env.NODE_ENV !== "staging" || process.env.NODE_ENV !== "development") {
+ if (process.env.NODE_ENV !== "production") {
7
return res.status(403).json({
8
message: "FORBIDDEN | To be used only in staging and development",
9
});
0 commit comments