Merge pull request #3742 from gunapriya07/fix-code-of-conduct-authorization

Fix: allow all users to view conference code of conduct (#3708)
This commit is contained in:
Henne Vogelsang 2026-03-03 15:58:14 +01:00 committed by GitHub
commit c8d33018e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,7 @@ class Ability
can [:show], Conference do |conference|
conference.splashpage&.public == true
end
can :code_of_conduct, Conference
# Can view the schedule
can [:schedule, :events], Conference do |conference|
conference.program.cfp && conference.program.schedule_public