Explorar el Código

fix condition to check user is null

Yuki Takei hace 5 años
padre
commit
b90fb1acf3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/routes/apiv3/users.js

+ 1 - 1
src/server/routes/apiv3/users.js

@@ -93,7 +93,7 @@ module.exports = (crowi) => {
 
       const { user } = req;
 
-      if (user !== null && user.admin) {
+      if (user != null && user.admin) {
         return value;
       }
       throw new Error('the param \'selectedStatusList\' is not allowed to use by the users except administrators');