Solved Issue 1259

This commit is contained in:
divyanshumehta 2017-02-11 16:45:27 +05:30
parent 42741fa90b
commit 529b8eb710
4 changed files with 21 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