mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
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…
x
Reference in New Issue
Block a user