]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Move element history actions to old element controllers
[rails.git] / app / abilities / ability.rb
index ef4c0a778dc487dcadf7a5b014340599869d2c7d..3802fb8261b2dcab357ee362fb2ec595c2af680d 100644 (file)
@@ -4,10 +4,8 @@ class Ability
   include CanCan::Ability
 
   def initialize(user)
-    can [:relation, :relation_history, :way, :way_history, :node, :node_history, :query], :browse
-    can [:show], OldNode
-    can [:show], OldWay
-    can [:show], OldRelation
+    can [:relation, :way, :node, :query], :browse
+    can [:index, :show], [OldNode, OldWay, OldRelation]
     can [:show, :new], Note
     can :search, :direction
     can [:index, :permalink, :edit, :help, :fixthemap, :offline, :export, :about, :communities, :preview, :copyright, :key, :id], :site