X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1b292d2389986ab5c8a5db19dccdb635f4d7d2d0..09b6560e81f56712c6241c7f525df45daf7580c5:/app/abilities/capability.rb diff --git a/app/abilities/capability.rb b/app/abilities/capability.rb index fdc53891a..556d4036c 100644 --- a/app/abilities/capability.rb +++ b/app/abilities/capability.rb @@ -5,6 +5,8 @@ class Capability def initialize(token) can [:create, :comment, :close, :reopen], Note if capability?(token, :allow_write_notes) + can [:api_read, :api_data], Trace if capability?(token, :allow_read_gpx) + can [:api_create, :api_update, :api_delete], Trace if capability?(token, :allow_write_gpx) can [:api_details], User if capability?(token, :allow_read_prefs) can [:api_gpx_files], User if capability?(token, :allow_read_gpx) can [:read, :read_one], UserPreference if capability?(token, :allow_read_prefs)