Fix: allow all users to view conference code of conduct (#3708)

This commit is contained in:
gunapriya07 2026-03-02 13:09:08 +05:30 committed by Henne Vogelsang
parent 44db914089
commit 8943807c04
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

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