Show code of conduct on organizations

This commit is contained in:
James Mason 2018-03-16 12:18:09 -07:00 committed by Ana María Martínez Gómez
parent a6daff8582
commit 217ec1a46f
5 changed files with 30 additions and 7 deletions

View file

@ -15,7 +15,7 @@ class Ability
# Abilities for not signed in users (guests)
def not_signed_in
can [:index, :conferences], Organization
can [:index, :conferences, :code_of_conduct], Organization
can [:index], Conference
can [:show], Conference do |conference|
conference.splashpage && conference.splashpage.public == true