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

Unified Diff: scheduler/appengine/presentation/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 | « no previous file | scheduler/appengine/ui/acl.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/presentation/acl.go
diff --git a/scheduler/appengine/ui/acl.go b/scheduler/appengine/presentation/acl.go
similarity index 81%
rename from scheduler/appengine/ui/acl.go
rename to scheduler/appengine/presentation/acl.go
index f9f807d64c749819f229bd829fdea5eda6b89d78..12f03b5ca5d51987c9dd3f5dbff7180ec238567f 100644
--- a/scheduler/appengine/ui/acl.go
+++ b/scheduler/appengine/presentation/acl.go
@@ -2,7 +2,7 @@
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
-package ui
+package presentation
import (
"golang.org/x/net/context"
@@ -10,7 +10,7 @@ import (
"github.com/luci/luci-go/server/auth"
)
-func isJobOwner(c context.Context, projectID, jobID string) bool {
+func IsJobOwner(c context.Context, projectID, jobName string) bool {
// TODO(vadimsh): Do real ACLs.
ok, err := auth.IsMember(c, "administrators")
if err != nil {
« no previous file with comments | « no previous file | scheduler/appengine/ui/acl.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698