From 78098f23e9a910f3b37fbd3f7c1939ad10ec40ad Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Tue, 8 Apr 2025 21:41:59 -0700 Subject: feat: refactor of authenticaiton --- internal/admin/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/admin/service.go') diff --git a/internal/admin/service.go b/internal/admin/service.go index ba8fe8b..7459404 100644 --- a/internal/admin/service.go +++ b/internal/admin/service.go @@ -87,7 +87,7 @@ func NewService(modelPath, policyPath, serverConfigPath, reposDir string, mgmtRe slog.Debug(fmt.Sprintf("policy path %s", workingPolicyPath)) enf, err := casbin.NewSyncedEnforcer(modelPath, workingPolicyPath) if err != nil { - return &Servicer{}, fmt.Errorf("Couldn't load the enforcer encountered the following error: %w", err) + return &Servicer{}, fmt.Errorf("couldn't load the enforcer encountered the following error: %w", err) } conf, err := loadServerConfig(mgmtRepo, reposDir, serverConfigPath) if errors.Is(err, ErrMgmtRepoNotFound) { @@ -96,7 +96,7 @@ func NewService(modelPath, policyPath, serverConfigPath, reposDir string, mgmtRe conf.basePath = reposDir } else if err != nil { - return &Servicer{}, fmt.Errorf("Coudln't load server config. %w", err) + return &Servicer{}, fmt.Errorf("coudln't load server config. %w", err) } svc := &Servicer{ enf, -- cgit v1.2.3