Skip to content

Commit

Permalink
🐛 Fix member policy field (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
tosone authored Mar 8, 2024
1 parent ee75d7c commit 2ea905e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dal/dao/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ func (s *userService) UpdateByID(ctx context.Context, id int64, updates map[stri
func (s *userService) AddPlatformMember(ctx context.Context, userID int64, role enums.UserRole) error {
return s.tx.CasbinRule.WithContext(ctx).Create(&models.CasbinRule{
PType: ptr.Of("g"),
V1: ptr.Of(fmt.Sprintf("%d", userID)),
V2: ptr.Of(role.String()),
V0: ptr.Of(fmt.Sprintf("%d", userID)),
V1: ptr.Of(role.String()),
})
}

Expand Down

0 comments on commit 2ea905e

Please sign in to comment.