]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Escape each portion of a semicolon seprated value individually
[rails.git] / app / abilities / api_ability.rb
index 62cd2b17ebbd41ad9408ebcfc5730134991b3506..9b274ec845d299f2ee6af894e80cb0f3ac0dac3a 100644 (file)
@@ -23,7 +23,7 @@ class ApiAbility
       can [:history, :version], OldRelation
     end
 
       can [:history, :version], OldRelation
     end
 
-    if user
+    if user&.active?
       can :welcome, :site
       can [:revoke, :authorize], :oauth
 
       can :welcome, :site
       can [:revoke, :authorize], :oauth