Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: appengine/chromium_cq_status/handlers/stats_data_points.py

Issue 2111713004: Teach CQ status app to check login status of users. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Review and tests. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/chromium_cq_status/handlers/stats_data_points.py
diff --git a/appengine/chromium_cq_status/handlers/stats_data_points.py b/appengine/chromium_cq_status/handlers/stats_data_points.py
index df2b8bca8d2b37e1501c7ff50eb3fce78381e62a..7768e8cb561a9f16a7beacd2113cb69dd6a3e37c 100644
--- a/appengine/chromium_cq_status/handlers/stats_data_points.py
+++ b/appengine/chromium_cq_status/handlers/stats_data_points.py
@@ -5,10 +5,12 @@
import webapp2
from model.cq_stats import CQStats
-from shared.utils import cross_origin_json
+from shared import utils
+
class StatsDataPoints(webapp2.RequestHandler):
- @cross_origin_json
+ @utils.cross_origin_json
+ @utils.read_access
def get(self, ranking, name, cq_stats_key): # pylint: disable=R0201
cq_stats = CQStats.get_by_id(int(cq_stats_key))
assert cq_stats, '%s must match a CQStats entry.' % cq_stats_key
« no previous file with comments | « appengine/chromium_cq_status/handlers/recent.py ('k') | appengine/chromium_cq_status/handlers/stats_query.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698