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

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

Issue 2986033003: [scheduler]: ACLs phase 1 - per Job ACL specification and enforcement. (Closed)
Patch Set: Review. Created 3 years, 4 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/acl/acl_test.go ('k') | scheduler/appengine/apiservers/scheduler.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/acl/doc.go
diff --git a/scheduler/appengine/acl/acl.go b/scheduler/appengine/acl/doc.go
similarity index 68%
copy from scheduler/appengine/acl/acl.go
copy to scheduler/appengine/acl/doc.go
index 32a4f3f94d13b0a176204996f4fe8d366f733db4..8f34f379129ada1fd5f904b34b21478e31481f0e 100644
--- a/scheduler/appengine/acl/acl.go
+++ b/scheduler/appengine/acl/doc.go
@@ -12,19 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// package acl implements ACLs for enforcement in API and UI.
package acl
-
-import (
- "golang.org/x/net/context"
-
- "github.com/luci/luci-go/server/auth"
-)
-
-func IsJobOwner(c context.Context, projectID, jobName 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/acl/acl_test.go ('k') | scheduler/appengine/apiservers/scheduler.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698