canvas-lms/app
Brian Palmer 207efe7698 only include unpublishable in the json response when applicable
In other words, when the API caller can publish/unpublish the quiz

Also change the semantics of Quiz#has_student_submissions slightly, so
that we can do a simple count > 0 query, rather than loading all the
submissions just to determine it. The only difference in behavior is if
a user took the quiz and then their enrollment was dropped.

Change-Id: I2aa779d247b87a5f1775fc93baa74b6920045569
Reviewed-on: https://gerrit.instructure.com/26892
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2013-12-03 05:20:41 +00:00
..
coffeescripts modify logging tab UI 2013-12-02 20:38:00 +00:00
controllers add last_activity_at to api enrollment object 2013-12-02 22:30:23 +00:00
helpers chat: provide instance guid for quicklaunch 2013-11-26 23:07:47 +00:00
messages fixes typo in regrade notification 2013-11-06 23:05:26 +00:00
middleware rails3 encrypted_cookie_store version 2013-11-19 19:46:46 +00:00
models only include unpublishable in the json response when applicable 2013-12-03 05:20:41 +00:00
observers don't include submissions in recent_stream_items 2013-01-03 15:42:39 -07:00
presenters move draft state under feature flag umbrella 2013-11-26 20:43:49 +00:00
stylesheets update due dates and availability info for quizzes on index page 2013-12-02 16:39:18 +00:00
views show when an account report fails in the ui and api 2013-12-02 22:57:25 +00:00