Commit 8d296caf by Clinton Blackburn

Hiding the publish button if the course run has no course key

LEARNER-2473
parent 97c8ba82
......@@ -49,7 +49,7 @@
</h2>
</div>
{% if request.user.is_staff %}
{% if request.user.is_staff and object.lms_course_id %}
<button class="btn btn-primary" onclick="publish('{% url 'publisher:api:v1:course_run-publish' pk=object.pk %}');">{% trans "Publish" %}</button>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment