|
|
@ -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? ?
|
|
|
|