Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp/0.25 #139

Draft
wants to merge 157 commits into
base: release/0.25-stable
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
6568b2d
Prepare 0.24.0.rc1 (#7474)
mrcasals Mar 1, 2021
ef5a5e5
New Crowdin updates (#7481)
decidim-bot Mar 1, 2021
62466ea
New Crowdin updates (#7489)
decidim-bot Mar 2, 2021
e4c21f7
Fix invalid signature on message decryption (#7490)
mrcasals Mar 2, 2021
7aae7de
Fix NULL error with weight field in assemblies & processes (#7491)
mrcasals Mar 2, 2021
68bdabf
Fix record encryptor hash values JSON parsing for legacy unencrypted …
mrcasals Mar 2, 2021
9720c55
New Crowdin updates (#7497)
decidim-bot Mar 2, 2021
bdf580e
Only share tokens if component exists (#7504)
mrcasals Mar 2, 2021
10ab14f
Invalidate all user sessions when destroying the account (#7506) (#7511)
mrcasals Mar 3, 2021
c6e3021
Remove duplicated migration (#7521)
mrcasals Mar 3, 2021
359c943
New Crowdin updates (#7505)
decidim-bot Mar 3, 2021
73a5079
Fix non-unique IDs element in filter hash cash (#7533)
mrcasals Mar 4, 2021
503660c
Fix record encryptor trying to decrypt or decode non-String values (#…
mrcasals Mar 4, 2021
95eb33a
New Crowdin updates (#7541)
decidim-bot Mar 4, 2021
eb07b77
Fix record encryptor trying to decrypt empty strings (#7547)
mrcasals Mar 5, 2021
554a39e
New Admin users cannot accept Terms and conditions (#7516) (#7520)
mrcasals Mar 5, 2021
58cedc6
New Crowdin updates (#7550)
decidim-bot Mar 6, 2021
94aa09b
Fix cells caching by using cache_key_with_version instead of cache ve…
mrcasals Mar 8, 2021
8fad747
Fix user profile timeline activity cards texts showing "New resource"…
mrcasals Mar 8, 2021
95dc391
New Crowdin updates (#7561)
decidim-bot Mar 8, 2021
f077003
New Crowdin updates (#7567)
decidim-bot Mar 10, 2021
a693b42
Sanitize address inputs (#7576)
mrcasals Mar 10, 2021
f5b25b8
New Crowdin updates (#7578)
decidim-bot Mar 10, 2021
d5645d3
Prepare 0.24.0.rc2 (#7580)
mrcasals Mar 10, 2021
9d1bc85
New Crowdin updates (#7589)
decidim-bot Mar 11, 2021
d74b202
New Crowdin updates (#7593)
decidim-bot Mar 14, 2021
924dc80
Fix process serializer to consider nil images (#7614)
mrcasals Mar 16, 2021
e325fd8
Make category in the API non-mandatory (#7626)
microstudi Mar 17, 2021
38f5163
Improve proposals listing performance after cache implementation (#7630)
mrcasals Mar 17, 2021
55f13a0
Do not crash if mandatory fields are blank and registrations are enab…
tramuntanal Mar 18, 2021
407e61f
Show processes finishing today (#7637)
tramuntanal Mar 18, 2021
d5a12aa
Fix rendering of proposals in map (#7645)
mrcasals Mar 19, 2021
d04b7d0
Don't copy counters when copying proposals (#7639)
mrcasals Mar 19, 2021
ab842de
Show all proposals in map (#7660) (#7678)
mrcasals Mar 23, 2021
51c83df
Make API commentable mutation translation attributes optional
ahukkanen Mar 24, 2021
860312e
Fit the map properly on mobile screens with multiple markers (#7651)
ahukkanen Mar 24, 2021
1efd578
Backports to 0.24 (#7700)
mrcasals Mar 24, 2021
0688142
Release 0.24.0 (#7752)
mrcasals Mar 26, 2021
b2a56aa
Add admin missing translations (#7702) (#7766)
tramuntanal Apr 5, 2021
e0f0db2
New Crowdin updates (#7633)
decidim-bot Apr 5, 2021
122fa5c
New Crowdin updates (#7789)
decidim-bot Apr 5, 2021
37bc477
Do not modify the controller class in the controller tests that rende…
armandfardeau Apr 6, 2021
d1452eb
Fix permission for initiative edit and update (#7654)
armandfardeau Apr 6, 2021
f49db89
Fix validations for registration related fields in Conference form (#…
tramuntanal Apr 6, 2021
5d98c0f
Add Conferences and Admin missing translations (#7653) (#7765)
tramuntanal Apr 7, 2021
24261a6
New Crowdin updates (#7799)
decidim-bot Apr 7, 2021
dbf54e0
Upgrade to Rails 5.2.5 (#7806)
mrcasals Apr 7, 2021
2ab09ab
New Crowdin updates (#7808)
decidim-bot Apr 8, 2021
b8746c6
Release 0.24.1 (#7814)
mrcasals Apr 8, 2021
377373b
New Crowdin updates (#7821)
decidim-bot Apr 9, 2021
e42e3d9
New Crowdin updates (#7829)
decidim-bot Apr 13, 2021
a26eb3a
New Crowdin updates (#7831)
decidim-bot Apr 13, 2021
64d66ee
New Crowdin updates (#7834)
decidim-bot Apr 14, 2021
b9b88b3
Do not change the global test app configs during specs (#7816)
mrcasals Apr 14, 2021
ed93198
New Crowdin updates (#7837)
decidim-bot Apr 14, 2021
321a384
New Crowdin updates (#7841)
decidim-bot Apr 15, 2021
936f067
New Crowdin updates (#7846)
decidim-bot Apr 16, 2021
ddb3fa3
New Crowdin updates (#7859)
decidim-bot Apr 19, 2021
026f8a1
Add css selectors to emails to improve design customization (#7493)
verarojman Mar 2, 2021
50bb030
Use first photo attachment as card image for meetings
verarojman Mar 10, 2021
7b72d1c
Use first photo attachment as card image for blog posts
verarojman Mar 10, 2021
f91a83a
CSV exporter should take into account locales from all resources (#7860)
tramuntanal Apr 20, 2021
2db6cda
New Crowdin updates (#7866)
decidim-bot Apr 21, 2021
453a5b1
Fix TypeError in newsletters (#7876)
mrcasals Apr 22, 2021
e205000
Improve proposals import options (#7669)
verarojman Apr 19, 2021
32cf42e
New Crowdin updates (#7886)
decidim-bot Apr 26, 2021
78cf9ad
Open attachments in new tab (#7918)
mrcasals Apr 29, 2021
708c01e
Validate nickname using correct regexp (#7900) (#7921)
mrcasals Apr 29, 2021
e7889c8
Cast proposal and collaborative drafts titles to text (#7928)
mrcasals Apr 30, 2021
a173dda
Authorizable comment action for proposals (#6916)
verarojman Apr 28, 2021
8b5ca22
Merge branch 'release/0.24-stable' into temp/0.24
microstudi May 3, 2021
29f50b0
New Crowdin updates (#7914)
decidim-bot May 5, 2021
18c4392
Update to Rails 5.2.6 (#7949)
mrcasals May 6, 2021
ee84681
Merge branch 'release/0.24-stable' into temp/0.24
microstudi May 6, 2021
b482db7
New Crowdin updates (#7938)
decidim-bot May 7, 2021
640b843
Editor doesnt create br tags inside a tags (#7957)
lahdeero May 7, 2021
6a03e43
Release 0.24.2 (#7953)
mrcasals May 7, 2021
8fb6e7d
Fix fragment caching with multiple locales v0.24 (#7960)
ahukkanen May 7, 2021
cd616f5
Fix changelog
mrcasals May 7, 2021
89333a5
Actually release 0.24.2
mrcasals May 7, 2021
074ce8f
New Crowdin updates (#7982)
decidim-bot May 10, 2021
b91191b
New Crowdin updates (#7989)
decidim-bot May 11, 2021
2f1e3c8
New Crowdin updates (#7997)
decidim-bot May 11, 2021
e8b392a
New Crowdin updates (#8000)
decidim-bot May 11, 2021
ec5251e
Merge branch 'release/0.24-stable' into temp/0.24
microstudi May 11, 2021
b43ff2a
Remove proposals filters cache (#8032) (#8038)
leio10 May 24, 2021
5545dc2
Include resources on maps only when the geocoding got valid coords (#…
leio10 May 24, 2021
822d1f4
Bump gems versions to fix dependendabot alerts (#8041)
leio10 May 24, 2021
b58b78a
New Crowdin updates (#8009)
decidim-bot May 24, 2021
a971270
Fix attachment title migration generating possibly invalid values (#8…
ahukkanen May 24, 2021
30bd6da
New Crowdin updates (#8046)
decidim-bot May 25, 2021
13a0d86
Backport #7999 to 0.24 (#8024)
lahdeero May 25, 2021
659c628
Avoid failing when adding a comment for a consultation question (#8062)
leio10 May 27, 2021
9ceb157
Use symbols for polymorphic route arguments (#8060)
tramuntanal May 27, 2021
f36aa95
Merge branch 'release/0.24-stable' into temp/0.24
microstudi May 31, 2021
bfe66aa
Fix boolean fields for .reported? and .hidden? which is nil if no rep…
leio10 May 31, 2021
250c92f
Fix redirects broken by Terms and Conditions redirect (#8083)
leio10 May 31, 2021
a3f129b
Use correct newsletter cell for web view (#8081)
leio10 Jun 1, 2021
76ed5c7
Bump bundle version for security reasons (#8084)
leio10 Jun 1, 2021
eceae9e
Prepare 0.24.3 release
leio10 Jun 1, 2021
85691fa
Make surveys matrix tables to scroll when needed (#8086)
leio10 Jun 1, 2021
3593e3f
New Crowdin updates (#8057)
decidim-bot Jun 1, 2021
f6522fe
Merge branch 'release/0.24-stable' into temp/0.24
microstudi Jun 2, 2021
7bc56a2
Fix question preview when no questions published (#8110)
sauloperez Jun 7, 2021
bccb99f
New Crowdin updates (#8089)
decidim-bot Jun 11, 2021
03643e4
Backport "Add missing templates translations" to 0.24 (#8135)
tramuntanal Jun 15, 2021
2761124
Backport "Add missing translation for authorization_modals" to 0.24 (…
tramuntanal Jun 15, 2021
200bfd2
New Crowdin updates (#8125)
decidim-bot Jun 21, 2021
5ed3691
Fix user report notification reported user name (#8157)
ahukkanen Jun 25, 2021
fb8a58b
Fix proposal map for on release/0.24-stable (#8160)
Quentinchampenois Jun 25, 2021
f0ba413
New Crowdin updates (#8151)
decidim-bot Jun 28, 2021
f441c3b
Backport fix dont save timeout path to session (#8170)
lahdeero Jun 29, 2021
da53697
Backport/timeout conflicting remember me (#8171)
lahdeero Jun 29, 2021
b820897
Backport proposal picker click on span (#8175)
lahdeero Jun 30, 2021
94ad32d
Backport "Fix access to import CSV results in accountability" to 0.24…
tramuntanal Jul 1, 2021
32bf6a5
Backport "Fix admin log blocked user name" to 0.24 (#8176)
ahukkanen Jul 2, 2021
3a92993
New Crowdin updates (#8166)
decidim-bot Jul 13, 2021
4148325
Backport "Fix create questionnaire from template when no template is …
tramuntanal Jul 13, 2021
d2c3f74
Backport "Fix ordering of question matrix_rows in templates" to 0.24 …
tramuntanal Jul 13, 2021
560cec3
New Crowdin updates (#8207)
decidim-bot Jul 19, 2021
35c2560
Backport "Fix status search on projects page" (#8211)
leio10 Jul 19, 2021
5cee819
Backport "Use comments counter cache instead of additional query" to …
ahukkanen Jul 19, 2021
691194e
Backport "Fully copy question's display_conditions from template" to …
tramuntanal Jul 19, 2021
6edf34c
Backport "Fix joining a meetings that the user already follows" to 0.…
ahukkanen Jul 19, 2021
cd350cf
Backport "Fix performance issue in notification settings page" (#8222)
leio10 Jul 20, 2021
67532f0
Fix don't require inactive authorization handlers (#8122) (#8223)
ahukkanen Jul 21, 2021
e05b4bf
Merge branch 'release/0.24-stable' into temp/0.24
microstudi Jul 21, 2021
ceb22d5
Set current_component as commentable when commentable is a participat…
entantoencuanto Jul 21, 2021
ddb3982
Backport part of "Fix broken tests after problematic PRs" (#8232)
leio10 Jul 22, 2021
1b16080
New Crowdin updates (#8216)
decidim-bot Jul 28, 2021
27c3c15
New Crowdin updates (#8246)
decidim-bot Sep 1, 2021
0e92059
Backport "Fix Luxembourgish locale" to v0.24 (#8283)
andreslucena Sep 6, 2021
6fad6b3
Fix accountability notifications proposal title (#8240) (#8288)
ahukkanen Sep 6, 2021
8e449a1
New Crowdin updates (#8274)
decidim-bot Sep 6, 2021
087a9f4
Backport "Fix invalid i18n values for diff changeset" to v0.24 (#8306)
ahukkanen Sep 8, 2021
44dd6d6
New Crowdin updates (#8301)
decidim-bot Sep 21, 2021
a610ad4
New Crowdin updates (#8348)
decidim-bot Sep 27, 2021
999ce75
New Crowdin updates (#8356)
decidim-bot Oct 4, 2021
95b5ca1
New Crowdin updates (#8375)
decidim-bot Oct 13, 2021
1e170a3
New Crowdin updates (#8404)
decidim-bot Oct 18, 2021
bd81f74
New Crowdin updates (#8419)
decidim-bot Oct 25, 2021
91f9643
New Crowdin updates (#8434)
decidim-bot Nov 2, 2021
79fb3bf
New Crowdin updates (#8460)
decidim-bot Nov 16, 2021
44fb937
New Crowdin updates (#8526)
decidim-bot Nov 23, 2021
2679948
Merge branch 'release/0.24-stable' into temp/0.24
microstudi Nov 26, 2021
c058a9d
New Crowdin updates (#8571)
decidim-bot Dec 14, 2021
b8432eb
New Crowdin updates (#8615)
decidim-bot Dec 21, 2021
1c93317
New Crowdin updates (#8637)
decidim-bot Dec 23, 2021
7d43650
Merge branch 'release/0.24-stable' into temp/0.24
microstudi Jan 12, 2022
55fa532
Fix participatory groups leaks on other organizations/tenants (#8651)
microstudi Jan 26, 2022
a532a7e
Fix report moderation for all the spaces (#8813)
microstudi Feb 21, 2022
8de1ef8
Backport fixes for proposal picker (#125)
phoebus-84 Mar 10, 2022
dfdf6e2
Merge branch 'release/0.25-stable' of github.com:Platoniq/decidim int…
fblupi Feb 1, 2023
f0e2c60
Update locked wkhtmltopdf version (#10171)
ahukkanen Dec 23, 2022
3f742cf
Fix spec/generators_spec.rb
fblupi Feb 2, 2023
ccb9131
Remove duplicated code
fblupi Feb 2, 2023
338b8e4
Remove duplicated code
fblupi Feb 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ GEM
activesupport
wisper (2.0.1)
wisper-rspec (1.1.0)
wkhtmltopdf-binary (0.12.6.5)
wkhtmltopdf-binary (0.12.6.6)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.5.1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def permissions
public_list_assemblies_action?
public_read_assembly_action?
public_list_members_action?
public_report_content_action?
return permission_action
end

Expand Down Expand Up @@ -125,13 +124,6 @@ def public_list_members_action?
allow!
end

def public_report_content_action?
return unless permission_action.action == :create &&
permission_action.subject == :moderation

allow!
end

# All users with a relation to a assembly and organization admins can enter
# the space area. The sapce area is considered to be the assemblies zone,
# not the assembly groups one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@
it { is_expected.to eq true }
end

context "when reporting a resource" do
let(:action) do
{ scope: :public, action: :create, subject: :moderation }
end

it { is_expected.to eq true }
end

context "when any other action" do
let(:action) do
{ scope: :public, action: :foo, subject: :bar }
Expand Down
3 changes: 3 additions & 0 deletions decidim-blogs/app/views/decidim/blogs/posts/_posts.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<div class="row small-12">
<% paginate_posts.each do |post| %>
<div class="card card--post">
<% if post.photo.present? %>
<%= image_tag post.photo.url, class: "card__image" %>
<% end %>
<div class="card__content">
<div class="card__header">
<%= link_to post, class: "card__link" do %>
Expand Down
7 changes: 7 additions & 0 deletions decidim-blogs/spec/system/explore_posts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
let!(:old_post) { create(:post, component: component, created_at: Time.current - 2.days) }
let!(:new_post) { create(:post, component: component, created_at: Time.current) }

let!(:image) { create(:attachment, attached_to: old_post) }

describe "index" do
it "shows all posts for the given process" do
visit_component
Expand All @@ -17,6 +19,11 @@
expect(page).to have_selector(".card--post", text: translated(old_post.title))
end

it "shows images" do
visit_component
expect(page).to have_selector(".card--post img.card__image")
end

it "shows comment counts" do
visit_component
expect(page).to have_selector('a[title="comments"]', text: "comment".pluralize(new_post.comments.count))
Expand Down
2 changes: 1 addition & 1 deletion decidim-comments/app/models/decidim/comments/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def visible?
alias original_participatory_space participatory_space
def participatory_space
return original_participatory_space if original_participatory_space.present?
return root_commentable if root_commentable.is_a?(Decidim::Participable)
return root_commentable unless root_commentable.respond_to?(:participatory_space)

root_commentable.participatory_space
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def permissions
public_list_program_action?
public_list_media_links_action?
public_list_registration_types_action?
public_report_content_action?

can_join_conference?
can_leave_conference?
Expand Down Expand Up @@ -159,13 +158,6 @@ def public_list_registration_types_action?
allow!
end

def public_report_content_action?
return unless permission_action.action == :create &&
permission_action.subject == :moderation

allow!
end

# All users with a relation to a conference and organization admins can enter
# the space area. The sapce area is considered to be the conferences zone,
# not the conference groups one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@
it { is_expected.to eq true }
end

context "when reporting a resource" do
let(:action) do
{ scope: :public, action: :create, subject: :moderation }
end

it { is_expected.to eq true }
end

context "when any other action" do
let(:action) do
{ scope: :public, action: :foo, subject: :bar }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Question < ApplicationRecord
delegate :start_voting_date, to: :consultation
delegate :end_voting_date, to: :consultation
delegate :results_published?, to: :consultation
delegate :moderators, to: :consultation

alias participatory_space consultation

Expand Down
9 changes: 9 additions & 0 deletions decidim-core/app/permissions/decidim/permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def permissions
component_public_action?
search_scope_action?

public_report_content_action?

return permission_action unless user

user_manager_permissions
Expand All @@ -28,6 +30,13 @@ def permissions

private

def public_report_content_action?
return unless permission_action.action == :create &&
permission_action.subject == :moderation

allow!
end

def read_public_pages_action?
return unless permission_action.subject == :public_page &&
permission_action.action == :read
Expand Down
15 changes: 11 additions & 4 deletions decidim-core/lib/decidim/has_attachments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,35 @@ module HasAttachments
inverse_of: :attached_to,
as: :attached_to

# All the attachments that are photos for this process.
# The first attachment that is a photo for this model.
#
# Returns an Attachment
def photo
@photo ||= photos.first
end

# All the attachments that are photos for this model.
#
# Returns an Array<Attachment>
def photos
@photos ||= attachments.select(&:photo?)
end

# All the attachments that are documents for this process.
# All the attachments that are documents for this model.
#
# Returns an Array<Attachment>
def documents
@documents ||= attachments.includes(:attachment_collection).select(&:document?)
end

# All the attachments that are documents for this process that has a collection.
# All the attachments that are documents for this model that has a collection.
#
# Returns an Array<Attachment>
def documents_with_collection
documents.select(&:attachment_collection_id?)
end

# All the attachments that are documents for this process that not has a collection.
# All the attachments that are documents for this model that not has a collection.
#
# Returns an Array<Attachment>
def documents_without_collection
Expand Down
8 changes: 8 additions & 0 deletions decidim-core/spec/permissions/decidim/permissions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
it { is_expected.to eq true }
end

context "when reporting a resource" do
let(:action) do
{ scope: :public, action: :create, subject: :moderation }
end

it { is_expected.to eq true }
end

context "when reading a component" do
let(:action) do
{ scope: :public, action: :read, subject: :component }
Expand Down
8 changes: 1 addition & 7 deletions decidim-generators/spec/generators_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,8 @@ module Decidim
it_behaves_like "a new production application"
end

context "with --edge flag" do
let(:command) { "decidim --edge #{test_app}" }

it_behaves_like "a new production application"
end

context "with --branch flag" do
let(:default_branch) { "develop" }
let(:default_branch) { "release/0.25-stable" }
let(:command) { "decidim --branch #{default_branch} #{test_app}" }

it_behaves_like "a new production application"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def permissions
return permission_action if permission_action.scope != :public

# Non-logged users permissions
public_report_content_action?
list_public_initiatives?
read_public_initiative?
search_initiative_types_and_scopes?
Expand Down Expand Up @@ -154,13 +153,6 @@ def initiative_attachment?
toggle_allow(initiative_type.attachments_enabled?)
end

def public_report_content_action?
return unless permission_action.action == :create &&
permission_action.subject == :moderation

allow!
end

def sign_initiative?
return unless permission_action.action == :sign_initiative &&
permission_action.subject == :initiative
Expand Down
8 changes: 8 additions & 0 deletions decidim-meetings/app/cells/decidim/meetings/meeting_m_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ def description

private

def resource_image_path
model.photo&.url
end

def has_image?
true
end

def spans_multiple_dates?
start_date != end_date
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ module Decidim::Meetings
expect(cell_html).to have_no_content("Created at")
expect(cell_html).to have_no_content(I18n.l(meeting.created_at.to_date, format: :decidim_short))
end

context "when an image is attached to the meeting" do
let!(:attachment) { create(:attachment, attached_to: meeting) }

it "renders the picture" do
expect(cell_html).to have_css(".card__image")
end
end
end

context "when title contains special html entities" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def permissions
public_list_process_groups_action?
public_read_process_group_action?
public_read_process_action?
public_report_content_action?
return permission_action
end

Expand Down Expand Up @@ -119,13 +118,6 @@ def can_view_private_space?
user.admin || process.users.include?(user)
end

def public_report_content_action?
return unless permission_action.action == :create &&
permission_action.subject == :moderation

allow!
end

# Only organization admins can enter the process groups space area.
def user_can_enter_process_groups_space_area?
return unless permission_action.action == :enter &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@
it { is_expected.to eq true }
end

context "when reporting a resource" do
let(:action) do
{ scope: :public, action: :create, subject: :moderation }
end

it { is_expected.to eq true }
end

context "when any other action" do
let(:action) do
{ scope: :public, action: :foo, subject: :bar }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Decidim
module Proposals
# This cell renders a proposals picker.
class ProposalsPickerCell < Decidim::ViewModel
MAX_PROPOSALS = 1000
MAX_PROPOSALS = 2000

def show
if filtered?
Expand Down
2 changes: 1 addition & 1 deletion decidim_app-design/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ GEM
activesupport
wisper (2.0.1)
wisper-rspec (1.1.0)
wkhtmltopdf-binary (0.12.6.5)
wkhtmltopdf-binary (0.12.6.6)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.5.1)
Expand Down