diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-26 09:34:52 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-26 09:34:52 -0600 |
| commit | f5011f9b32b33ef78405e624d223194ff4b0bd7f (patch) | |
| tree | ddf4bc22cda1d64e17e0b845edaa4b796f7638e2 | |
| parent | 1cfa3bc4ee938c372d3cb539169dc7a48a277667 (diff) | |
refactor: remove unused code
| -rw-r--r-- | pkg/authz/check_service.go | 12 |
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}, ":") } |
