summaryrefslogtreecommitdiff
path: root/pkg/authz/check_service.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/authz/check_service.go')
-rw-r--r--pkg/authz/check_service.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/authz/check_service.go b/pkg/authz/check_service.go
index 55d075f..641ba92 100644
--- a/pkg/authz/check_service.go
+++ b/pkg/authz/check_service.go
@@ -31,14 +31,6 @@ var public map[string]bool = map[string]bool{
"POST:/sparkles/restore": true,
}
-var permissions map[string]string = map[string]string{
- "GET:/dashboard": "read_dashboard",
- "GET:/signout": "destroy_session",
- "GET:/sparkles": "read_sparkles",
- "POST:/sparkles": "create_sparkles",
- "POST:/sparkles/restore": "restore_sparkles",
-}
-
type CheckService struct {
auth.UnimplementedAuthorizationServer
}
@@ -152,10 +144,6 @@ func (svc *CheckService) fieldsFor(r *auth.CheckRequest) log.Fields {
}
}
-func (svc *CheckService) permissionFor(r *auth.AttributeContext_HttpRequest) string {
- return permissions[svc.keyFor(r)]
-}
-
func (svc *CheckService) keyFor(r *auth.AttributeContext_HttpRequest) string {
return strings.Join([]string{r.Method, r.Path}, ":")
}