Skip to content

Commit

Permalink
Fix Admin panel private process private users listing when a user is …
Browse files Browse the repository at this point in the history
…private
  • Loading branch information
JoonasAapro committed Jun 17, 2024
1 parent a7f3fa1 commit 1ea0c1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module Decidim
module Privacy
module ParticipatorySpacePrivateUserExtensions
extend ActiveSupport::Concern

included do
belongs_to :user, -> { entire_collection }, class_name: "Decidim::User", foreign_key: :decidim_user_id
end
end
end
end
1 change: 1 addition & 0 deletions lib/decidim/privacy/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class Engine < ::Rails::Engine
Decidim::UserGroup.include(Decidim::Privacy::UserGroupExtensions)
Decidim::UserBaseEntity.include(Decidim::Privacy::UserBaseEntityExtensions)
Decidim::Organization.include(Decidim::Privacy::OrganizationExtensions)
Decidim::ParticipatorySpacePrivateUser.include(Decidim::Privacy::ParticipatorySpacePrivateUserExtensions)

# forms
Decidim::AccountForm.include(Decidim::Privacy::AccountFormExtensions)
Expand Down

0 comments on commit 1ea0c1b

Please sign in to comment.