allow mass redaction for members with same or larger power level
This commit is contained in:
parent
b248918aca
commit
a8695d345b
1 changed files with 1 additions and 2 deletions
|
@ -685,7 +685,7 @@ module.exports = createReactClass({
|
||||||
mute: false,
|
mute: false,
|
||||||
modifyLevel: false,
|
modifyLevel: false,
|
||||||
modifyLevelMax: 0,
|
modifyLevelMax: 0,
|
||||||
redactMessages: false,
|
redactMessages: me.powerLevel >= powerLevels.redact,
|
||||||
};
|
};
|
||||||
|
|
||||||
const canAffectUser = them.powerLevel < me.powerLevel || isMe;
|
const canAffectUser = them.powerLevel < me.powerLevel || isMe;
|
||||||
|
@ -704,7 +704,6 @@ module.exports = createReactClass({
|
||||||
can.mute = me.powerLevel >= editPowerLevel;
|
can.mute = me.powerLevel >= editPowerLevel;
|
||||||
can.modifyLevel = me.powerLevel >= editPowerLevel && (isMe || me.powerLevel > them.powerLevel);
|
can.modifyLevel = me.powerLevel >= editPowerLevel && (isMe || me.powerLevel > them.powerLevel);
|
||||||
can.modifyLevelMax = me.powerLevel;
|
can.modifyLevelMax = me.powerLevel;
|
||||||
can.redactMessages = me.powerLevel >= powerLevels.redact;
|
|
||||||
|
|
||||||
return can;
|
return can;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue