Skip to content

Commit

Permalink
Fix: Metrics/CyclomaticComplexity.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Jul 6, 2021
1 parent c96dd93 commit 21aa8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def initialize(user)
end

# Admins and Staff share a few special abilities
if user.admin? or user.role == 'S' or user.director? then
if %w[D S U].include?(user.role) then
can :print_official_docs, User, :year => user.year
can :check_in, :attendee
can :read, :report
Expand Down

0 comments on commit 21aa8c9

Please sign in to comment.