This commit is contained in:
r888888888
2014-06-17 18:06:28 -07:00
parent 500f7a7812
commit 4ab6a2417f
10 changed files with 182 additions and 93 deletions

View File

@@ -91,7 +91,7 @@ class ForumPost < ActiveRecord::Base
end
def validate_topic_is_unlocked
return if CurrentUser.is_janitor?
return if CurrentUser.user.is_janitor?
return if topic.nil?
if topic.is_locked?