实训评论报错

dev_forum
daiao 5 years ago
parent 67b6b735cd
commit fd3f85aa93

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

Loading…
Cancel
Save