]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Merge pull request #4156 from AntonKhorev/bootstrap-code-direction-fix
[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