Skip to content

Commit

Permalink
refactor: Fix authorization error in checkSuperAdmin function
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <jangina.mboya@gmail.com>
  • Loading branch information
JeffMboya committed Jun 5, 2024
1 parent 9294845 commit 60f460d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func (svc *service) checkSuperAdmin(ctx context.Context, adminID string) error {
if err := svc.clients.CheckSuperAdmin(ctx, adminID); err != nil {
return errors.Wrap(svcerr.ErrAuthorization, err)
}
return nil
return errors.Wrap(svcerr.ErrAuthorization, err)
}

return nil
Expand Down

0 comments on commit 60f460d

Please sign in to comment.