diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-23 12:21:24 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-23 12:21:24 -0600 |
| commit | 9674cfaedfdb8d583cfe75e1c1738a1c1d66c7f9 (patch) | |
| tree | 4ecede06bdc4e3e689ff4e3f952db603038f7790 /app/controllers/sparkles/controller.go | |
| parent | 944ef4ca499fe27a57d4cd3c21bccb99508526ca (diff) | |
refactor: inject permission service into sparkle controller
Diffstat (limited to 'app/controllers/sparkles/controller.go')
| -rw-r--r-- | app/controllers/sparkles/controller.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/sparkles/controller.go b/app/controllers/sparkles/controller.go index 7e6975c..80e95cb 100644 --- a/app/controllers/sparkles/controller.go +++ b/app/controllers/sparkles/controller.go @@ -9,6 +9,7 @@ import ( "github.com/xlgmokha/x/pkg/x" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/domain" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/middleware" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/authz" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls" ) @@ -16,7 +17,7 @@ type Controller struct { db domain.Repository[*domain.Sparkle] } -func New(db domain.Repository[*domain.Sparkle]) *Controller { +func New(db domain.Repository[*domain.Sparkle], check authz.PermissionService) *Controller { return &Controller{db: db} } |
