Allow moderators to perform Timeout as well.
This commit is contained in:
parent
04f3dfbb9f
commit
f8e9047359
2 changed files with 2 additions and 6 deletions
|
@ -72,7 +72,7 @@ export default function ModalBlockChannel(props: Props) {
|
||||||
const [timeoutSec, setTimeoutSec] = React.useState(-1);
|
const [timeoutSec, setTimeoutSec] = React.useState(-1);
|
||||||
|
|
||||||
const isPersonalTheOnlyTab = !activeChannelIsModerator && !activeChannelIsAdmin;
|
const isPersonalTheOnlyTab = !activeChannelIsModerator && !activeChannelIsAdmin;
|
||||||
const isTimeoutAvail = contentClaim && contentClaim.is_my_output;
|
const isTimeoutAvail = (contentClaim && contentClaim.is_my_output) || activeChannelIsModerator;
|
||||||
const blockButtonDisabled = blockType === BLOCK.TIMEOUT && timeoutSec < 1;
|
const blockButtonDisabled = blockType === BLOCK.TIMEOUT && timeoutSec < 1;
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
|
@ -324,11 +324,7 @@ const makeSelectFilteredComments = (comments: Array<Comment>, claimId?: string)
|
||||||
if (claimId) {
|
if (claimId) {
|
||||||
const claimIdIsMine = myClaims && myClaims.size > 0 && myClaims.has(claimId);
|
const claimIdIsMine = myClaims && myClaims.size > 0 && myClaims.has(claimId);
|
||||||
if (!claimIdIsMine) {
|
if (!claimIdIsMine) {
|
||||||
if (
|
if (personalBlockList.includes(comment.channel_url) || adminBlockList.includes(comment.channel_url)) {
|
||||||
personalBlockList.includes(comment.channel_url) ||
|
|
||||||
adminBlockList.includes(comment.channel_url) ||
|
|
||||||
moderatorBlockList.includes(comment.channel_url)
|
|
||||||
) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue