mirror of https://github.com/xwiki-labs/cryptpad
Owner can't demote themselves if there are no other owners
This commit is contained in:
parent
9477ae0895
commit
0583ed3c8b
|
@ -587,7 +587,7 @@ define([
|
||||||
}
|
}
|
||||||
todo();
|
todo();
|
||||||
});
|
});
|
||||||
if (!(isMe && myRole === 2 && !otherOwners)) {
|
if (!(isMe && myRole === 3 && !otherOwners)) {
|
||||||
$actions.append(demote);
|
$actions.append(demote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue