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:
commit
c8d33018e4
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ class Ability
|
||||||
can [:show], Conference do |conference|
|
can [:show], Conference do |conference|
|
||||||
conference.splashpage&.public == true
|
conference.splashpage&.public == true
|
||||||
end
|
end
|
||||||
|
can :code_of_conduct, Conference
|
||||||
# Can view the schedule
|
# Can view the schedule
|
||||||
can [:schedule, :events], Conference do |conference|
|
can [:schedule, :events], Conference do |conference|
|
||||||
conference.program.cfp && conference.program.schedule_public
|
conference.program.cfp && conference.program.schedule_public
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue