diff --git a/app/models/user.rb b/app/models/user.rb index e4b6b41d4..ea8289e53 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -89,9 +89,9 @@ class User < ApplicationRecord additional_responsibilities.each do |responsibility| case responsibility when "key_contact" - scopes << send("is_key_contact") + scopes << is_key_contact when "data_protection_officer" - scopes << send("is_data_protection_officer") + scopes << is_data_protection_officer end end