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