]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Disable text wrapping while measuring header width
[rails.git] / app / abilities / api_ability.rb
index 62cd2b17ebbd41ad9408ebcfc5730134991b3506..fe39f5eb5aa2475a4d1c56fa9456e9a8842d117a 100644 (file)
@@ -21,9 +21,10 @@ class ApiAbility
       can [:history, :version], OldNode
       can [:history, :version], OldWay
       can [:history, :version], OldRelation
+      can [:show], UserBlock
     end
 
-    if user
+    if user&.active?
       can :welcome, :site
       can [:revoke, :authorize], :oauth