]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Refactor login/logout into sessions controller
[rails.git] / app / abilities / ability.rb
index d91b7a2e738015a163671fb1674107fc27c84152..b8aa826892f78d9700e06e361622293bb88dca23 100644 (file)
@@ -19,8 +19,9 @@ class Ability
       can [:index, :rss, :show, :comments], DiaryEntry
       can [:index], Note
       can [:index, :show], Redaction
+      can [:new, :create, :destroy], :session
       can [:index, :show, :data, :georss, :picture, :icon], Trace
-      can [:terms, :login, :logout, :new, :create, :save, :confirm, :confirm_resend, :confirm_email, :lost_password, :reset_password, :show, :auth_success, :auth_failure], User
+      can [:terms, :new, :create, :save, :confirm, :confirm_resend, :confirm_email, :lost_password, :reset_password, :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