Skip to content

Commit

Permalink
removed wrc comp permissions, added view users permissions (#9711)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT authored Jul 31, 2024
1 parent e048693 commit 1b5b17a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def has_permission?(permission_name, scope = nil)
end

def can_view_all_users?
admin? || board_member? || results_team? || communication_team? || wdc_team? || any_kind_of_delegate? || weat_team?
admin? || board_member? || results_team? || communication_team? || wdc_team? || any_kind_of_delegate? || weat_team? || wrc_team?
end

def can_edit_user?(user)
Expand Down Expand Up @@ -766,7 +766,6 @@ def can_manage_competition?(competition)
can_admin_competitions? ||
competition.organizers.include?(self) ||
competition.delegates.include?(self) ||
wrc_team? ||
competition.delegates.flat_map(&:senior_delegates).compact.include?(self) ||
ethics_committee?
)
Expand Down

0 comments on commit 1b5b17a

Please sign in to comment.