]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Add tests to ensure tokens are revoked
[rails.git] / app / abilities / ability.rb
index e022f7993e79adcfd8d7047fd4cabc94269077d9..bb9cd6300526aec6afa84e4c3549e7ac710c2040 100644 (file)
@@ -33,7 +33,7 @@ class Ability
       can [:history, :version], OldRelation
     end
 
-    if user
+    if user&.active?
       can :welcome, :site
       can [:revoke, :authorize], :oauth
       can [:show], :deletion