Skip to content

Commit 6c7ccfe

Browse files
committed
fix: adjust player policy
1 parent 489e168 commit 6c7ccfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/modules/players/policies/player_policy.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ def show?
1111
end
1212

1313
def create?
14-
admin?
14+
coach?
1515
end
1616

1717
def update?
18-
admin? && same_organization?
18+
coach? && same_organization?
1919
end
2020

2121
def destroy?
@@ -31,7 +31,7 @@ def matches?
3131
end
3232

3333
def import?
34-
admin?
34+
coach?
3535
end
3636

3737
def sync_from_riot?

0 commit comments

Comments
 (0)