Skip to content

Commit

Permalink
update isAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhendi committed Dec 10, 2024
1 parent d3f14dd commit 8582624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func (c *repoComponentImpl) PublicToUser(ctx context.Context, repoType types.Rep

isAdmin = dbUser.CanAdmin()

if !dbUser.CanAdmin() {
if !isAdmin {
repoOwnerIDs = append(repoOwnerIDs, user.ID)
//get user's orgs
for _, org := range user.Orgs {
Expand Down

0 comments on commit 8582624

Please sign in to comment.