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

Unified Diff: milo/appengine/settings/acl.go

Issue 2271453002: Milo: Internal buildbot masters support (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: nit fix Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « milo/appengine/buildbot/pubsub_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/settings/acl.go
diff --git a/milo/appengine/settings/acl.go b/milo/appengine/settings/acl.go
index 43297fa893104eccc66ce264b9b0752eeed8ec2b..25599864adeb1961bda196691bed4247133b9fdd 100644
--- a/milo/appengine/settings/acl.go
+++ b/milo/appengine/settings/acl.go
@@ -54,3 +54,9 @@ func IsAllowed(c context.Context, project string) (bool, error) {
}
return false, nil
}
+
+// IsAllowedInternal is a shorthand for checking to see if the user is a reader
+// of a magic project named "buildbot-internal".
+func IsAllowedInternal(c context.Context) (bool, error) {
+ return IsAllowed(c, "buildbot-internal")
+}
« no previous file with comments | « milo/appengine/buildbot/pubsub_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698