Explorar o código

fix "users/list"

Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
6d6b079dbf
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  1. 0 6
      packages/app/src/server/routes/apiv3/users.js

+ 0 - 6
packages/app/src/server/routes/apiv3/users.js

@@ -907,17 +907,11 @@ module.exports = (crowi) => {
    */
   router.get('/list', accessTokenParser, loginRequired, async(req, res) => {
     const userIds = req.query.userIds || null;
-    const username = req.query.username || null;
-    const limit = req.query.limit || 20;
 
     let userFetcher;
     if (userIds !== null && userIds.split(',').length > 0) {
       userFetcher = User.findUsersByIds(userIds.split(','));
     }
-    // Get username list by matching pattern from username mention
-    else if (username !== null) {
-      userFetcher = User.findUserByUsernameRegex(username, limit, [User.STATUS_ACTIVE]);
-    }
     else {
       userFetcher = User.findAllUsers();
     }