Use proper equality operator for Long
This commit is contained in:
parent
d4d02e8aba
commit
d7d8cbbbb6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue