diff options
-rw-r--r-- | app/models/ability.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 0add2f5a34a..ba1f2ae4075 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -1,5 +1,6 @@ class Ability class << self + # rubocop: disable Metrics/CyclomaticComplexity def allowed(user, subject) return anonymous_abilities(user, subject) if user.nil? return [] unless user.is_a?(User) |