Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljames-dj committed Jan 14, 2025
1 parent 1babdce commit 585326f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def permissions
scope: can_admin_results? ? "*" : delegated_competition_ids,
},
can_edit_results: {
scope: results_team? || admin? ? "*" : [],
scope: can_edit_results? ? "*" : [],
},
can_create_groups: {
scope: groups_with_create_access,
Expand Down Expand Up @@ -834,6 +834,10 @@ def can_admin_results?
admin? || board_member? || results_team?
end

private def can_edit_results?
admin? || results_team?
end

def can_admin_finances?
admin? || financial_committee?
end
Expand Down

0 comments on commit 585326f

Please sign in to comment.