Skip to content

Commit

Permalink
user who can edit lichess post should see a edit link
Browse files Browse the repository at this point in the history
  • Loading branch information
yafred committed Jan 16, 2025
1 parent 6325b75 commit 26ade18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ublog/src/main/ui/UblogPostUi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class UblogPostUi(helpers: Helpers, ui: UblogUi)(
" ",
editButton(post)
)
else if Granter.opt(_.ModerateBlog) then editButton(post)
else if (Granter.opt(_.ModerateBlog) || Granter.opt(_.Pages)) then editButton(post)
else if !post.live then badTag(trans.ublog.thisIsADraft())
else
a(
Expand Down

0 comments on commit 26ade18

Please sign in to comment.