Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Jan 26, 2018
1 parent 44e2038 commit 9721fb7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/guardian/post_guardian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def can_edit_post?(post)
return false
end


if post.wiki && (@user.trust_level >= SiteSetting.min_trust_to_edit_wiki_post.to_i)
return can_create_post?(post.topic)
end
Expand All @@ -122,7 +121,6 @@ def can_edit_post?(post)
return false
end


if is_my_own?(post)
if post.hidden?
return false if post.hidden_at.present? &&
Expand Down

0 comments on commit 9721fb7

Please sign in to comment.