competition list: add permission column

dev_local_cqdsj
p31729568 6 years ago
parent 921f6be755
commit 4c4d3bdfb3

@ -27,5 +27,9 @@ json.competitions do
# json.end_time section.display_end_time # json.end_time section.display_end_time
# end # end
# end # end
json.permission do
json.editable current_user.admin_or_business? || (competition.nearly_published? && competition.manager?(current_user))
end
end end
end end
Loading…
Cancel
Save