Skip to content
Snippets Groups Projects
Commit 63477fd2 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Disable Metrics/CyclomaticComplexity for Ability.allowed

There's little point to cut that down.
parent 59413153
No related branches found
No related tags found
1 merge request!4961Admin should be able to turn shared runners into specific ones:
Pipeline #
class Ability class Ability
class << self class << self
# rubocop: disable Metrics/CyclomaticComplexity
def allowed(user, subject) def allowed(user, subject)
return anonymous_abilities(user, subject) if user.nil? return anonymous_abilities(user, subject) if user.nil?
return [] unless user.is_a?(User) return [] unless user.is_a?(User)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment