X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8383fd0928a3a431dc58c48d42bf1d19bc43ea34..f28e236bdd79d8e2b7e9c1186d92a1f7167825f6:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index 4f0ce1bd7..5e8ef997f 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -4,10 +4,10 @@ class Ability include CanCan::Ability def initialize(user) - can [:map, :changes], :api can [:relation, :relation_history, :way, :way_history, :node, :node_history, :changeset, :note, :new_note, :query], :browse can :show, :capability + can :index, :change can [:index, :feed, :show, :download, :query], Changeset can :index, ChangesetComment can :search, :direction @@ -16,6 +16,7 @@ class Ability can [:finish, :embed], :export can [:search, :search_latlon, :search_ca_postcode, :search_osm_nominatim, :search_geonames, :search_osm_nominatim_reverse, :search_geonames_reverse], :geocoder + can :index, :map can [:index, :create, :comment, :feed, :show, :search, :mine], Note can [:token, :request_token, :access_token, :test_request], :oauth can :show, :permission