]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Move confirmation methods into ConfirmationsController
[rails.git] / app / abilities / ability.rb
index 5db1b7eb5722256e186b90aacb49b0c379270e7f..9c832b43ac48bc278ba4b2f7e0dab3b99aaf7c11 100644 (file)
@@ -16,13 +16,14 @@ class Ability
     if Settings.status != "database_offline"
       can [:index, :feed], Changeset
       can :index, ChangesetComment
+      can [:confirm, :confirm_resend, :confirm_email], :confirmation
       can [:index, :rss, :show, :comments], DiaryEntry
       can [:index], Note
       can [:lost_password, :reset_password], :password
       can [:index, :show], Redaction
       can [:new, :create, :destroy], :session
       can [:index, :show, :data, :georss, :picture, :icon], Trace
-      can [:terms, :new, :create, :save, :confirm, :confirm_resend, :confirm_email, :show, :auth_success, :auth_failure], User
+      can [:terms, :new, :create, :save,  :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