|
|
@ -6,7 +6,7 @@ json.subject_score @subject.all_score
|
|
|
|
json.member_count @subject.member_count
|
|
|
|
json.member_count @subject.member_count
|
|
|
|
|
|
|
|
|
|
|
|
json.allow_delete @is_creator && (@subject.status != 2 || @user.admin?)
|
|
|
|
json.allow_delete @is_creator && (@subject.status != 2 || @user.admin?)
|
|
|
|
json.publish_status publish_status(@subject, @is_creator, @user)
|
|
|
|
json.publish_status publish_status(@subject, @is_creator, @user, @shixuns)
|
|
|
|
json.allow_statistics @user.manager_of_subject?(@subject)
|
|
|
|
json.allow_statistics @user.manager_of_subject?(@subject)
|
|
|
|
json.allow_send @user.logged?
|
|
|
|
json.allow_send @user.logged?
|
|
|
|
json.allow_visit @user.manager_of_subject?(@subject) || @user.admin? || @subject.status > 1
|
|
|
|
json.allow_visit @user.manager_of_subject?(@subject) || @user.admin? || @subject.status > 1
|
|
|
|