Linting
This commit is contained in:
parent
44e2038b53
commit
9721fb7573
|
@ -113,7 +113,6 @@ module PostGuardian
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if post.wiki && (@user.trust_level >= SiteSetting.min_trust_to_edit_wiki_post.to_i)
|
if post.wiki && (@user.trust_level >= SiteSetting.min_trust_to_edit_wiki_post.to_i)
|
||||||
return can_create_post?(post.topic)
|
return can_create_post?(post.topic)
|
||||||
end
|
end
|
||||||
|
@ -122,7 +121,6 @@ module PostGuardian
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if is_my_own?(post)
|
if is_my_own?(post)
|
||||||
if post.hidden?
|
if post.hidden?
|
||||||
return false if post.hidden_at.present? &&
|
return false if post.hidden_at.present? &&
|
||||||
|
|
Loading…
Reference in New Issue