Skip to content

Commit

Permalink
Fix Rubocop violations and normalize locales (decidim#9305)
Browse files Browse the repository at this point in the history
* Normalize locales

* Fix Rubocop violations in budgets permissions
  • Loading branch information
ahukkanen authored and eliegaboriau committed Oct 25, 2022
1 parent 77d86e0 commit bbd3aee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,17 @@ def permissions
end
when :project, :projects
case permission_action.action
when :create, :import_proposals
when :create, :import_proposals, :project_category
permission_action.allow!
when :update, :destroy
permission_action.allow! if project.present?
when :project_category
permission_action.allow!
end
when :order
case permission_action.action
when :remind
permission_action.allow!
end
when :project_category
permission_action.allow!
when :project_scope
permission_action.allow!
when :project_selected
when :project_category, :project_scope, :project_selected
permission_action.allow!
end

Expand Down
4 changes: 2 additions & 2 deletions decidim-meetings/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ en:
select_a_meeting_type: Please select a meeting type
select_a_registration_type: Please select a registration type
select_an_iframe_access_level: Please select an iframe access level
show_embedded_iframe_help: "Only a few services allow embedding in meeting or live event from the following domains: %{domains}"
show_embedded_iframe_help: 'Only a few services allow embedding in meeting or live event from the following domains: %{domains}'
index:
title: Meetings
new:
Expand Down Expand Up @@ -509,7 +509,7 @@ en:
select_a_meeting_type: Please select a meeting type
select_a_registration_type: Please select a registration type
select_an_iframe_access_level: Please select an iframe access level
show_embedded_iframe_help: "Only a few services allow embedding in meeting or live event from the following domains: %{domains}"
show_embedded_iframe_help: 'Only a few services allow embedding in meeting or live event from the following domains: %{domains}'
index:
click_here: See all meetings
new_meeting: New meeting
Expand Down

0 comments on commit bbd3aee

Please sign in to comment.