From: Tom Hughes Date: Wed, 9 Jan 2019 18:13:05 +0000 (+0000) Subject: Allow everybody to create new notes X-Git-Tag: live~2767 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/99b380765aedfb32fdc15e231cf01cf135f33bed Allow everybody to create new notes Fixes #2110 --- diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index 09e9be2cf..acd11926c 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -4,7 +4,7 @@ class Ability 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