FIX: Don't replace the wiki button if the user can't edit

This commit is contained in:
Robin Ward 2018-06-28 14:48:13 -04:00
parent b59c17d484
commit 5350429870
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}