| 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)
|
|
|