diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 11:39:54 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:03:39 +0800 |
commit | 90ce7b1faf976d76329a8c02008cd84c78a753f5 (patch) | |
tree | 9374618661e2521fec73ab9fc6f1f0f8f68f0c2b /acl.go | |
parent | Remove underscores from Go code, pt 3 (diff) | |
download | forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.tar.gz forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.tar.zst forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.zip |
Remove underscores from Go code, pt 4
Diffstat (limited to 'acl.go')
-rw-r--r-- | acl.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ import ( // getRepoInfo returns the filesystem path and direct // access permission for a given repo and a provided ssh public key. -func getRepoInfo(ctx context.Context, group_path []string, repoName, sshPubkey string) (repoID int, fsPath string, access bool, contribReq, userType string, userID int, err error) { +func 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 @@ -51,7 +51,7 @@ LEFT JOIN users u ON u.id = s.user_id LEFT JOIN user_group_roles ugr ON ugr.group_id = g.id AND ugr.user_id = u.id WHERE g.depth = cardinality($1::text[]) AND r.name = $2 -`, pgtype.FlatArray[string](group_path), repoName, sshPubkey, +`, pgtype.FlatArray[string](groupPath), repoName, sshPubkey, ).Scan(&repoID, &fsPath, &access, &contribReq, &userType, &userID) return } |