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

Side by Side Diff: appengine/auth_service/acl.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « appengine/auth_service/PRESUBMIT.py ('k') | appengine/auth_service/appengine_config.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Swarming Authors. All rights reserved. 1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ACL checks for endpoints exposed by auth_service.""" 5 """ACL checks for endpoints exposed by auth_service."""
6 6
7 from components import auth 7 from components import auth
8 from components.auth.ui import acl 8 from components.auth.ui import acl
9 9
10 10
11 def has_access(identity=None): 11 def has_access(identity=None):
12 """Returns True if current caller can access groups and other auth data.""" 12 """Returns True if current caller can access groups and other auth data."""
13 return acl.has_access(identity) 13 return acl.has_access(identity)
14 14
15 15
16 def is_trusted_service(identity=None): 16 def is_trusted_service(identity=None):
17 """Returns True if caller is in 'auth-trusted-services' group.""" 17 """Returns True if caller is in 'auth-trusted-services' group."""
18 return auth.is_group_member('auth-trusted-services', identity) 18 return auth.is_group_member('auth-trusted-services', identity)
OLDNEW
« no previous file with comments | « appengine/auth_service/PRESUBMIT.py ('k') | appengine/auth_service/appengine_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698