Fixed authController.js

This commit is contained in:
Bobby Wibowo 2018-10-13 18:09:09 +07:00
parent fcf4c00de7
commit 4456ba4b4d
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -225,7 +225,7 @@ authController.listUsers = async (req, res, next) => {
const userids = []
for (const user of users) {
user.groups = authController.mapPermissions(user)
user.groups = perms.mapPermissions(user)
delete user.permission
userids.push(user.id)