diff --git a/node/src/client.js b/node/src/client.js index 0189914..4b10575 100644 --- a/node/src/client.js +++ b/node/src/client.js @@ -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)