Fix merge

pull/21833/head
David Baker 2019-09-12 13:09:59 +01:00
parent b0abb52518
commit ef7d8c42a8
1 changed files with 0 additions and 3 deletions

View File

@ -679,9 +679,6 @@ module.exports = createReactClass({
redactMessages: false,
};
// Calculate permissions for Synapse before doing the PL checks
can.synapseDeactivate = await this.context.matrixClient.isSynapseAdministrator();
const canAffectUser = them.powerLevel < me.powerLevel || isMe;
if (!canAffectUser) {
//console.log("Cannot affect user: %s >= %s", them.powerLevel, me.powerLevel);