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

Side by Side Diff: milo/appengine/common/acl.go

Issue 2748073006: Milo Refactor: Remove theme support (Closed)
Patch Set: Fix builder.html pointer Created 3 years, 9 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
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package settings 5 package common
6 6
7 import ( 7 import (
8 "github.com/luci/luci-go/luci_config/common/cfgtypes" 8 "github.com/luci/luci-go/luci_config/common/cfgtypes"
9 "github.com/luci/luci-go/luci_config/server/cfgclient/access" 9 "github.com/luci/luci-go/luci_config/server/cfgclient/access"
10 "github.com/luci/luci-go/luci_config/server/cfgclient/backend" 10 "github.com/luci/luci-go/luci_config/server/cfgclient/backend"
11 "golang.org/x/net/context" 11 "golang.org/x/net/context"
12 ) 12 )
13 13
14 // Helper functions for ACL checking. 14 // Helper functions for ACL checking.
15 15
(...skipping 13 matching lines...) Expand all
29 return false, err 29 return false, err
30 } 30 }
31 } 31 }
32 32
33 // IsAllowedInternal is a shorthand for checking to see if the user is a reader 33 // IsAllowedInternal is a shorthand for checking to see if the user is a reader
34 // of a magic project named "chrome". 34 // of a magic project named "chrome".
35 func IsAllowedInternal(c context.Context) (bool, error) { 35 func IsAllowedInternal(c context.Context) (bool, error) {
36 // TODO(hinoka): Move this to luci-cfg. 36 // TODO(hinoka): Move this to luci-cfg.
37 return IsAllowed(c, "chrome") 37 return IsAllowed(c, "chrome")
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698