实训评论报错

dev_forum
daiao 5 years ago
parent 67b6b735cd
commit fd3f85aa93

@ -33,11 +33,11 @@ class Discuss < ApplicationRecord
"/tasks/#{game&.identifier}" "/tasks/#{game&.identifier}"
end end
def contents(shixun, user) # def contents(shixun, user)
return content unless hidden? # return content unless hidden?
#
shixun.has_manager?(user) ? content : '' # shixun.has_manager?(user) ? content : ''
end # end
def child_discuss(user) def child_discuss(user)
user.admin? ? user.admin? ?

Loading…
Cancel
Save