Owner can't demote themselves if there are no other owners

This commit is contained in:
yflory 2019-10-22 17:33:24 +02:00
parent 9477ae0895
commit 0583ed3c8b
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ define([
} }
todo(); todo();
}); });
if (!(isMe && myRole === 2 && !otherOwners)) { if (!(isMe && myRole === 3 && !otherOwners)) {
$actions.append(demote); $actions.append(demote);
} }
} }