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

Unified Diff: scheduler/appengine/ui/acl.go

Issue 2949093003: scheduler: more of s/JobID/JobName/ where JobID != Job.JobID. (Closed)
Patch Set: review Created 3 years, 6 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 | « scheduler/appengine/presentation/acl.go ('k') | scheduler/appengine/ui/common.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/ui/acl.go
diff --git a/scheduler/appengine/ui/acl.go b/scheduler/appengine/ui/acl.go
deleted file mode 100644
index f9f807d64c749819f229bd829fdea5eda6b89d78..0000000000000000000000000000000000000000
--- a/scheduler/appengine/ui/acl.go
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2016 The LUCI Authors. All rights reserved.
-// Use of this source code is governed under the Apache License, Version 2.0
-// that can be found in the LICENSE file.
-
-package ui
-
-import (
- "golang.org/x/net/context"
-
- "github.com/luci/luci-go/server/auth"
-)
-
-func isJobOwner(c context.Context, projectID, jobID string) bool {
- // TODO(vadimsh): Do real ACLs.
- ok, err := auth.IsMember(c, "administrators")
- if err != nil {
- panic(err)
- }
- return ok
-}
« no previous file with comments | « scheduler/appengine/presentation/acl.go ('k') | scheduler/appengine/ui/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698