Skip to content

Commit

Permalink
Adapt signature to core-change (#58)
Browse files Browse the repository at this point in the history
With this, the history of a person is viewable again.

See also: https://sentry.puzzle.ch/pitc/hitobito-backend/issues/65739/
  • Loading branch information
kronn authored Mar 28, 2024
1 parent c112402 commit 023e4eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/glp/person/history_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) 2022, GLP Schweiz. This file is part of
# Copyright (c) 2022-2024, GLP Schweiz. This file is part of
# hitobito_glp and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory or at
# https://github.com/hitobito/hitobito_glp.
Expand All @@ -9,7 +9,7 @@ module Glp
module Person::HistoryController
extend ActiveSupport::Concern

def fetch_roles
def fetch_roles(*scopes)
return super if donor_visible?

super.reject { |r| r.type == ::Group::Spender::Spender.sti_name }
Expand Down

0 comments on commit 023e4eb

Please sign in to comment.