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

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

Issue 2946343004: scheduler: add rpcs for actions on job and invocation. (Closed)
Patch Set: review 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/engine/engine.go ('k') | scheduler/appengine/presentation/state.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/presentation/acl.go b/scheduler/appengine/presentation/acl.go
index 12f03b5ca5d51987c9dd3f5dbff7180ec238567f..77dd7b69ec11d02f0ea5ee66f8377b7a371d7ba8 100644
--- a/scheduler/appengine/presentation/acl.go
+++ b/scheduler/appengine/presentation/acl.go
@@ -10,6 +10,7 @@ import (
"github.com/luci/luci-go/server/auth"
)
+// TODO(tandrii): move this to new acl package.
func IsJobOwner(c context.Context, projectID, jobName string) bool {
// TODO(vadimsh): Do real ACLs.
ok, err := auth.IsMember(c, "administrators")
« no previous file with comments | « scheduler/appengine/engine/engine.go ('k') | scheduler/appengine/presentation/state.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698