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

Unified Diff: appengine/chrome_infra_packages/cipd/acl.py

Issue 816433004: cipd: registerPackage method implementation. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years 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/chrome_infra_packages/cipd/acl.py
diff --git a/appengine/chrome_infra_packages/cipd/acl.py b/appengine/chrome_infra_packages/cipd/acl.py
new file mode 100644
index 0000000000000000000000000000000000000000..c2c5f2a7002f00832b14fc4ddaf6ed3e6bfb2e72
--- /dev/null
+++ b/appengine/chrome_infra_packages/cipd/acl.py
@@ -0,0 +1,16 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Access control list implementation."""
+
+# Silence pylint warning until implementation is ready.
+# pylint: disable=unused-argument
+
+from components import auth
+
+# TODO(vadimsh): Implement.
+
+def can_register_package(package_name, identity): # pragma: no cover
+ """True if |identity| is allowed to register package with given name."""
+ return auth.is_admin(identity)

Powered by Google App Engine
This is Rietveld 408576698