]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Use CanCanCan for directions controller
[rails.git] / app / abilities / ability.rb
index b5026196fb8b67fe8e0469462c94dfe81b1ab048..fa0e30f03b38ac1c7681deb87c67538d2502ae15 100644 (file)
@@ -6,6 +6,7 @@ class Ability
   def initialize(user)
     can [:relation, :relation_history, :way, :way_history, :node, :node_history, :changeset, :note], :browse
     can :index, ChangesetComment
+    can :search, :direction
     can [:index, :permalink, :edit, :help, :fixthemap, :offline, :export, :about, :preview, :copyright, :key, :id], :site
     can [:index, :rss, :show, :comments], DiaryEntry
     can [:finish, :embed], :export