1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added views to delegate tournament permissions

This commit is contained in:
2016-01-07 19:55:15 +00:00
parent 216e60d2b8
commit dd9e19b43f
10 changed files with 157 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ class Ability
end
#Can manage school if tournament owner
can :manage, School do |school|
school.tournament.user.id == user.id
school.tournament.user_id == user.id
end
#Can manage school if tournament delegate
can :manage, School do |school|