Implements iChain authentication
This commit is contained in:
parent
15c6ed127f
commit
49d565def2
21 changed files with 269 additions and 126 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue