From 20b4fe0c59357a433042732d46e38da9c3d14c3b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:26:57 +0800 Subject: database 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 44cd04b..dfe128a 100644 --- a/acl.go +++ b/acl.go @@ -14,7 +14,7 @@ import ( // // TODO: Revamp. 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, ` + err = s.database.QueryRow(ctx, ` WITH RECURSIVE group_path_cte AS ( -- Start: match the first name in the path where parent_group IS NULL SELECT -- cgit v1.2.3