]> git.openstreetmap.org Git - rails.git/commitdiff
Allow everybody to create new notes
authorTom Hughes <tom@compton.nu>
Wed, 9 Jan 2019 18:13:05 +0000 (18:13 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Jan 2019 18:13:55 +0000 (18:13 +0000)
Fixes #2110

app/abilities/ability.rb

index 09e9be2cf2c7a92cb3b4afd64ceafa045487dff5..acd11926c32940f872d7844554a3d8fe1c7606c7 100644 (file)
@@ -4,7 +4,7 @@ class Ability
   include CanCan::Ability
 
   def initialize(user)
   include CanCan::Ability
 
   def initialize(user)
-    can [:relation, :relation_history, :way, :way_history, :node, :node_history, :changeset, :note], :browse
+    can [:relation, :relation_history, :way, :way_history, :node, :node_history, :changeset, :note, :new_note], :browse
     can [:index, :feed, :read, :download, :query], Changeset
     can :index, ChangesetComment
     can :search, :direction
     can [:index, :feed, :read, :download, :query], Changeset
     can :index, ChangesetComment
     can :search, :direction