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

Unified Diff: appengine/machine_provider/acl.py

Issue 2692853012: Only allow explicitly whitelisted users to issue lease requests to Machine Provider (Closed)
Patch Set: Created 3 years, 10 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/machine_provider/acl.py
diff --git a/appengine/machine_provider/acl.py b/appengine/machine_provider/acl.py
index 11cdf15c33c428a68881bcbe4ec7529f063b97ad..e62f038da961ad99cc9c12760706342993ab9849 100644
--- a/appengine/machine_provider/acl.py
+++ b/appengine/machine_provider/acl.py
@@ -52,4 +52,4 @@ def is_backend_service_or_catalog_admin():
def can_issue_lease_requests():
"""Returns whether the current user may issue lease requests."""
- return is_logged_in()
+ return auth.is_group_member('machine-provider-users')

Powered by Google App Engine
This is Rietveld 408576698