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

Side by Side 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: remove metadata Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698