From 71ab9b7f14118f02dd18cd733bd4e0ad19ece590 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:21:32 +0800 Subject: config shall no longer be a global variable --- acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'acl.go') diff --git a/acl.go b/acl.go index 5f242d5..44cd04b 100644 --- a/acl.go +++ b/acl.go @@ -13,7 +13,7 @@ import ( // given repo and a provided ssh public key. // // TODO: Revamp. -func getRepoInfo(ctx context.Context, groupPath []string, repoName, sshPubkey string) (repoID int, fsPath string, access bool, contribReq, userType string, userID int, err error) { +func (s *server) getRepoInfo(ctx context.Context, groupPath []string, repoName, sshPubkey string) (repoID int, fsPath string, access bool, contribReq, userType string, userID int, err error) { err = database.QueryRow(ctx, ` WITH RECURSIVE group_path_cte AS ( -- Start: match the first name in the path where parent_group IS NULL -- cgit v1.2.3