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

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

Issue 2976623002: scheduler: Move IsJobOwner to acl package. (Closed)
Patch Set: missing Created 3 years, 5 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/job.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/ui/invocation.go
diff --git a/scheduler/appengine/ui/invocation.go b/scheduler/appengine/ui/invocation.go
index 7e00d8e4f446a38c2f6856a429e99b0e541cabba..ab2ea7a78a6ef86afb75aa6a2c9adcccc1fe86b3 100644
--- a/scheduler/appengine/ui/invocation.go
+++ b/scheduler/appengine/ui/invocation.go
@@ -24,8 +24,8 @@ import (
"github.com/luci/luci-go/server/router"
"github.com/luci/luci-go/server/templates"
+ "github.com/luci/luci-go/scheduler/appengine/acl"
"github.com/luci/luci-go/scheduler/appengine/engine"
- "github.com/luci/luci-go/scheduler/appengine/presentation"
)
func invocationPage(c *router.Context) {
@@ -91,7 +91,7 @@ func handleInvAction(c *router.Context, cb func(string, int64) error) {
projectID := c.Params.ByName("ProjectID")
jobName := c.Params.ByName("JobName")
invID := c.Params.ByName("InvID")
- if !presentation.IsJobOwner(c.Context, projectID, jobName) {
+ if !acl.IsJobOwner(c.Context, projectID, jobName) {
http.Error(c.Writer, "Forbidden", 403)
return
}
« no previous file with comments | « scheduler/appengine/presentation/acl.go ('k') | scheduler/appengine/ui/job.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698