mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
feat: block no admin users to access some routes
This commit is contained in:
@@ -23,7 +23,10 @@ exports.store = async (req, res, next) => {
|
||||
}
|
||||
);
|
||||
|
||||
return res
|
||||
.status(200)
|
||||
.json({ token: token, username: user.name, userId: user.id });
|
||||
return res.status(200).json({
|
||||
token: token,
|
||||
username: user.name,
|
||||
profile: user.profile,
|
||||
userId: user.id,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user