This commit is contained in:
Divyanshu Mehta 2017-07-04 08:08:55 +00:00 committed by GitHub
commit 4a624f10eb
6 changed files with 73 additions and 3 deletions

View file

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