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

pull/1/head
yflory 5 years ago
parent 9477ae0895
commit 0583ed3c8b

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

Loading…
Cancel
Save