X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdce867183b71a2fe13686d2cc7fd826f5b23043..99af52b4785438f931481f730a91805e1ddf975f:/app/abilities/api_ability.rb diff --git a/app/abilities/api_ability.rb b/app/abilities/api_ability.rb index 4ed9708b4..3fe180eeb 100644 --- a/app/abilities/api_ability.rb +++ b/app/abilities/api_ability.rb @@ -34,7 +34,7 @@ class ApiAbility can :read, UserPreference if scope?(token, :read_prefs) can [:update, :update_all, :destroy], UserPreference if scope?(token, :write_prefs) - can [:inbox, :outbox, :read, :update, :destroy], Message if scope?(token, :consume_messages) + can [:read, :update, :destroy], Message if scope?(token, :consume_messages) can :create, Message if scope?(token, :send_messages) if user.terms_agreed?