]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Add active blocks list api endpoint with empty response
[rails.git] / app / abilities / api_ability.rb
index a0340c5cd6fc30c7d0d25122bf8da9c3af379cdb..7bbd9889ad53fbbb6d064b115f79eca7a54cad75 100644 (file)
@@ -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")