Skip to content

Commit

Permalink
Running linters
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu authored and fblupi committed Nov 21, 2023
1 parent af2184f commit 04eceef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def copy
private

def collection
@collection ||= AssembliesWithUserRole.new(current_user).query.includes(:children)
@collection ||= OrganizationAssemblies.new(current_user.organization).query
end

def current_assembly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def user_role

def assembly_admin_allowed_assemblies
@assembly_admin_allowed ||= begin
assemblies = AssembliesWithUserRole.for(user, :admin).where(id:[ assembly.id, assembly.parent_id])
assemblies = AssembliesWithUserRole.for(user, :admin).where(id: [assembly.id, assembly.parent_id])
child_assemblies = assemblies.flat_map { |assembly| [assembly.id] + assembly.children.pluck(:id) }

Decidim::Assembly.where(id: assemblies + child_assemblies)
Expand Down

0 comments on commit 04eceef

Please sign in to comment.