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

Unified Diff: appengine/config_service/admin.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/acl_test.py ('k') | appengine/config_service/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/admin.py
diff --git a/appengine/config_service/admin.py b/appengine/config_service/admin.py
index e46d4ba7f7d793552ac0f51bdf2767ed90e040aa..c35ccddd94dc4a8fd79c62c5ccc652c64fff6a09 100644
--- a/appengine/config_service/admin.py
+++ b/appengine/config_service/admin.py
@@ -21,6 +21,8 @@ from protorpc import remote
from components import auth
from components.datastore_utils import config
+import acl
+
# This is used by endpoints indirectly.
package = 'luci-config'
@@ -55,7 +57,7 @@ class AdminApi(remote.Service):
@auth.endpoints_method(
GlobalConfigMessage, GlobalConfigMessage, name='globalConfig')
- @auth.require(auth.is_admin)
+ @auth.require(acl.is_admin)
def global_config(self, request):
"""Reads/writes global configuration."""
conf = GlobalConfig.fetch()
« no previous file with comments | « appengine/config_service/acl_test.py ('k') | appengine/config_service/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698