Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Revert "fix(metabase): do not attempt to delete all users group on ad…
Browse files Browse the repository at this point in the history
…ding open database"

This reverts commit c622b24.
  • Loading branch information
erikvatt committed Sep 6, 2024
1 parent c622b24 commit 119e06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/core/service_metabase.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func (s *metabaseService) addAllUsersDataset(ctx context.Context, dsID uuid.UUID
return errs.E(op, err)
}

if meta.PermissionGroupID != nil && *meta.PermissionGroupID == 0 {
if meta.PermissionGroupID != nil {
err = s.metabaseAPI.DeletePermissionGroup(ctx, *meta.PermissionGroupID)
if err != nil {
return errs.E(op, err)
Expand Down

0 comments on commit 119e06b

Please sign in to comment.