FIX: Don't replace the wiki button if the user can't edit
This commit is contained in:
parent
b59c17d484
commit
5350429870
|
@ -340,7 +340,7 @@ export default createWidget("post-menu", {
|
|||
const orderedButtons = this.menuItems();
|
||||
|
||||
// If the post is a wiki, make Edit more prominent
|
||||
if (attrs.wiki) {
|
||||
if (attrs.wiki && attrs.canEdit) {
|
||||
replaceButton(orderedButtons, "edit", "reply-small");
|
||||
replaceButton(orderedButtons, "reply", "wiki-edit");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue