diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/v1/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/v1/users.js b/server/controllers/api/v1/users.js index 057dcaf8d..704df770c 100644 --- a/server/controllers/api/v1/users.js +++ b/server/controllers/api/v1/users.js | |||
@@ -34,7 +34,7 @@ router.put('/:id', | |||
34 | updateUser | 34 | updateUser |
35 | ) | 35 | ) |
36 | 36 | ||
37 | router.delete('/:username', | 37 | router.delete('/:id', |
38 | oAuth.authenticate, | 38 | oAuth.authenticate, |
39 | admin.ensureIsAdmin, | 39 | admin.ensureIsAdmin, |
40 | validatorsUsers.usersRemove, | 40 | validatorsUsers.usersRemove, |
@@ -83,7 +83,7 @@ function listUsers (req, res, next) { | |||
83 | function removeUser (req, res, next) { | 83 | function removeUser (req, res, next) { |
84 | waterfall([ | 84 | waterfall([ |
85 | function getUser (callback) { | 85 | function getUser (callback) { |
86 | User.loadByUsername(req.params.username, callback) | 86 | User.loadById(req.params.id, callback) |
87 | }, | 87 | }, |
88 | 88 | ||
89 | function getVideos (user, callback) { | 89 | function getVideos (user, callback) { |