From 933b85ba8c2bcd3bfaee5d9579382deb1329759a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 13 Aug 2026 00:28:13 +0100 Subject: [PATCH] Fix new rubocop warnings --- app/models/oauth2_application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/oauth2_application.rb b/app/models/oauth2_application.rb index 80ba74415..365d8f6df 100644 --- a/app/models/oauth2_application.rb +++ b/app/models/oauth2_application.rb @@ -41,6 +41,6 @@ class Oauth2Application < Doorkeeper::Application def allowed_scopes return if owner.administrator? - errors.add(:scopes) if scopes.any? { |scope| Oauth::PRIVILEGED_SCOPES.include?(scope) } # rubocop:disable Style/ArrayIntersect + errors.add(:scopes) if scopes.any? { |scope| Oauth::PRIVILEGED_SCOPES.include?(scope) } end end -- 2.47.3