]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Fix display of suspension message when a user is suspended mid-session
[rails.git] / app / abilities / ability.rb
index a45bf9a574ec84623d52c9d54ad19eda0c85a048..b8e21b4867e430d13d1955b2296e78696c249eb3 100644 (file)
@@ -23,7 +23,7 @@ class Ability
       can [:index, :show], Redaction
       can [:new, :create, :destroy], :session
       can [:index, :show, :data, :georss, :picture, :icon], Trace
-      can [:terms, :new, :create, :save,  :show, :auth_success, :auth_failure], User
+      can [:terms, :new, :create, :save, :suspended, :show, :auth_success, :auth_failure], User
       can [:index, :show, :blocks_on, :blocks_by], UserBlock
       can [:index, :show], Node
       can [:index, :show, :full, :ways_for_node], Way