Implements iChain authentication

This commit is contained in:
chrisbr 2014-11-04 17:42:47 +01:00
parent 15c6ed127f
commit 49d565def2
21 changed files with 269 additions and 126 deletions

View file

@ -123,6 +123,7 @@ class Ability
end
can :index, :schedule # show?
can :show, User
end
def signed_in(user)
@ -131,6 +132,9 @@ class Ability
# Conference Registration
can :manage, Registration, user_id: user.id
can :manage, User, id: user.id
can :show, User
## Proposals
# Users can manage their own proposals
can :manage, Event, id: user.events.pluck(:id)