Skip to content

Commit

Permalink
Adds permission for captains to update team names.
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchpete committed Sep 15, 2024
1 parent 913d8ef commit b2b83d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/authorization_rules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
end

# User assignments (league commissioner, team captain, etc...)
has_permission_on :teams, :to => [:edit, :update, :report_score, :report_spirit_score] do
has_permission_on :teams, :to => [:edit, :update, :report_score, :modify_name, :report_spirit_score] do
if_attribute :captains => contains { user }
end

Expand Down

0 comments on commit b2b83d6

Please sign in to comment.