X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0..6d558003aa5672a27362ae3f42627df50bd81ad1:/app/abilities/api_ability.rb diff --git a/app/abilities/api_ability.rb b/app/abilities/api_ability.rb index a0340c5cd..7bbd9889a 100644 --- a/app/abilities/api_ability.rb +++ b/app/abilities/api_ability.rb @@ -30,6 +30,8 @@ class ApiAbility can [:read, :update, :destroy], Message if scopes.include?("consume_messages") can :create, Message if scopes.include?("send_messages") + can :read, :active_user_blocks_list if scopes.include?("read_prefs") + if user.terms_agreed? can [:create, :update, :upload, :close, :subscribe, :unsubscribe], Changeset if scopes.include?("write_map") can :create, ChangesetComment if scopes.include?("write_changeset_comments")