Various small fixes for the participant UI

This commit is contained in:
Henne Vogelsang 2014-12-05 16:04:34 +01:00
parent b6abe96279
commit d13efa5f52
31 changed files with 287 additions and 279 deletions

View file

@ -105,7 +105,14 @@ class Ability
# Abilities for everyone, even guests (not logged in users)
def guest
# can view conferences
can [:index, :show, :schedule], Conference
can [:index], Conference
can [:show], Conference do |conference|
conference.splashpage && conference.splashpage.public == true
end
can [:schedule], Conference do |conference|
conference.call_for_paper && conference.call_for_paper.schedule_public
end
# can view confirmed Events
can :show, Event do |event|
event.state == 'confirmed'