|
|
|
@ -10,7 +10,7 @@ json.publish_status publish_status(@subject, @is_creator, @user, @shixuns)
|
|
|
|
|
json.allow_statistics @user.manager_of_subject?(@subject)
|
|
|
|
|
json.allow_send @user.logged?
|
|
|
|
|
json.allow_visit @user.manager_of_subject?(@subject) || @user.admin? || @subject.status > 1
|
|
|
|
|
json.allow_add_member @user.admin?
|
|
|
|
|
json.allow_add_member @user.manager_of_subject?(@subject)
|
|
|
|
|
|
|
|
|
|
json.members @members do |member|
|
|
|
|
|
json.partial! 'subject_member', locals: { user: member.user }
|
|
|
|
|