X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c7a7d298133b9df8ca3f341bdee47e02cb54cc51..1774109311a1dc859bfec26ef54853b3078577e5:/app/abilities/capability.rb?ds=sidebyside diff --git a/app/abilities/capability.rb b/app/abilities/capability.rb index ae30a0ebd..fdc53891a 100644 --- a/app/abilities/capability.rb +++ b/app/abilities/capability.rb @@ -11,6 +11,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