X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/175bb0d00678b370bc79fabec3a0334683c3f022..bd577d7c92ac81081174f19b8c31899c22145636:/app/abilities/api_ability.rb diff --git a/app/abilities/api_ability.rb b/app/abilities/api_ability.rb index 4ed9708b4..13a453eb5 100644 --- a/app/abilities/api_ability.rb +++ b/app/abilities/api_ability.rb @@ -29,12 +29,10 @@ class ApiAbility can [:create, :update, :destroy], Trace if scope?(token, :write_gpx) can :details, User if scope?(token, :read_prefs) - can :gpx_files, User if scope?(token, :read_gpx) - 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?