]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Bump eslint from 8.34.0 to 8.35.0
[rails.git] / app / abilities / api_ability.rb
index 62cd2b17ebbd41ad9408ebcfc5730134991b3506..9b274ec845d299f2ee6af894e80cb0f3ac0dac3a 100644 (file)
@@ -23,7 +23,7 @@ class ApiAbility
       can [:history, :version], OldRelation
     end
 
-    if user
+    if user&.active?
       can :welcome, :site
       can [:revoke, :authorize], :oauth