Skip to content

Commit

Permalink
Fix condition in decorator for Zeitwerk
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Sep 4, 2024
1 parent aadc405 commit fdf422a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Following Semantic Versioning 2.
## next version:

## Version 0.7.1 (PATCH)
- Fix Zeitwerk error with decorator in /lib folder
- Fix Zeitwerk errors with decorators

## Version 0.7.0 (MINOR)
- Increase minimum Decidim version to v0.27.6
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

if Decidim::DepartmentAdmin.conferences_defined?
module Decidim
module Conferences
module Decidim
module Conferences
if Decidim::DepartmentAdmin.conferences_defined?
class ParticipatorySpacePermissions < Decidim::DepartmentAdmin::Permissions
def initialize(*)
# This are the same permissions as Decidim's conferences space.
Expand All @@ -11,6 +11,9 @@ def initialize(*)
super
end
end
else
class ParticipatorySpacePermissions
end
end
end
end

0 comments on commit fdf422a

Please sign in to comment.