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 { |