]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/capability.rb
Allow everybody to query features
[rails.git] / app / abilities / capability.rb
index b6cad31158672178c4643654cd6fb2a40028318f..556d4036cd52714b79e563123460ae0576c993a4 100644 (file)
@@ -13,6 +13,7 @@ class Capability
     can [:update, :update_one, :delete_one], UserPreference if capability?(token, :allow_write_prefs)
 
     if token&.user&.terms_agreed? || !REQUIRE_TERMS_AGREED
+      can [:create, :update, :upload, :close, :subscribe, :unsubscribe, :expand_bbox], Changeset if capability?(token, :allow_write_api)
       can :create, ChangesetComment if capability?(token, :allow_write_api)
     end