diff options
| author | Max Resnick <max@ofmax.li> | 2025-04-08 21:41:59 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2025-05-26 21:57:12 -0700 |
| commit | 78098f23e9a910f3b37fbd3f7c1939ad10ec40ad (patch) | |
| tree | 6432695fcc218089a90e1c32f4e1601a14124de4 /internal/admin | |
| parent | 7f3b59980e3b9d8d878aa57f4b01b9d4cc1eab0c (diff) | |
| download | go-git-server-78098f23e9a910f3b37fbd3f7c1939ad10ec40ad.tar.gz | |
feat: refactor of authenticaitonrefactor-authz-scheme
Diffstat (limited to '')
| -rw-r--r-- | internal/admin/service.go | 4 |
1 files changed, 2 insertions, 2 deletions
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, |