Use proper equality operator for Long

This commit is contained in:
Andrew Ferrazzutti 2022-05-10 21:37:15 -04:00
parent d4d02e8aba
commit d7d8cbbbb6
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ export default class PeerClient {
if (!talkChannel.getUserInfo(user)) {
throw new ProtocolError("Cannot set permission level of a user that is not a channel participant")
}
if (req.user_id == talkChannel.clientUser.userId) {
if (req.user_id.equals(talkChannel.clientUser.userId)) {
throw new ProtocolError("Cannot change own permission level")
}
return await talkChannel.setUserPerm(user, req.perm)