OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Access control list implementation.""" |
| 6 |
| 7 # Silence pylint warning until implementation is ready. |
| 8 # pylint: disable=unused-argument |
| 9 |
| 10 from components import auth |
| 11 |
| 12 # TODO(vadimsh): Implement. |
| 13 |
| 14 def can_register_package(package_name, identity): # pragma: no cover |
| 15 """True if |identity| is allowed to register package with given name.""" |
| 16 return auth.is_admin(identity) |
OLD | NEW |