mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-30 19:34:14 +00:00
fix small issues in the code (#145)
Co-authored-by: eglehelms <e.helms@cognigy.com>
This commit is contained in:
1 parent
b2dce18c7a
commit
9c7f8b4e7b
4 files changed
+19
-3
No files matched your search
@@ -20,7 +20,7 @@ router.get('/:sid', async(req, res) => {
|
||||
|
||||
if (req.user.hasAccountAuth) {
|
||||
/* can only update carriers for the user's account */
|
||||
if (results[0].account_sid != req.user.account_sid) {
|
||||
if (results[0].account_sid !== req.user.account_sid) {
|
||||
throw new DbErrorForbidden('insufficient privileges');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user