Browse Source

fix condition to check user is null

Yuki Takei 5 years ago
parent
commit
b90fb1acf3
1 changed files with 1 additions and 1 deletions
  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;
       const { user } = req;
 
 
-      if (user !== null && user.admin) {
+      if (user != null && user.admin) {
         return value;
         return value;
       }
       }
       throw new Error('the param \'selectedStatusList\' is not allowed to use by the users except administrators');
       throw new Error('the param \'selectedStatusList\' is not allowed to use by the users except administrators');