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

Unified Diff: appengine/config_service/api.py

Issue 2932473005: config_service: implement admin group (Closed)
Patch Set: self review Created 3 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
« no previous file with comments | « appengine/config_service/admin.py ('k') | appengine/config_service/api_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/api.py
diff --git a/appengine/config_service/api.py b/appengine/config_service/api.py
index c3a75655cc32f3b9cc6458104a648c454138c4c7..517ba5db37a8b7a32894c9d4abb6f6e21ee5a327 100644
--- a/appengine/config_service/api.py
+++ b/appengine/config_service/api.py
@@ -373,7 +373,7 @@ class ConfigApi(remote.Service):
@auth.public # ACL check inside
def reimport(self, request):
"""Reimports a config set."""
- if not auth.is_admin():
+ if not acl.is_admin():
raise endpoints.ForbiddenException('Only admins are allowed to do this')
# Assume it is Gitiles.
try:
« no previous file with comments | « appengine/config_service/admin.py ('k') | appengine/config_service/api_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698