]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Move browse#new_note to notes#new
[rails.git] / app / abilities / ability.rb
index fd548c5f38a38a18a1d03f9f91972732b2d7816c..aee44e6e526124b9ca6c391c5eea77087d522b42 100644 (file)
@@ -5,7 +5,8 @@ class Ability
 
   def initialize(user)
     can [:relation, :relation_history, :way, :way_history, :node, :node_history,
-         :changeset, :note, :new_note, :query], :browse
+         :changeset, :note, :query], :browse
+    can [:new], Note
     can :search, :direction
     can [:index, :permalink, :edit, :help, :fixthemap, :offline, :export, :about, :communities, :preview, :copyright, :key, :id], :site
     can [:finish, :embed], :export