Merge remote-tracking branch 'upstream/pull/2106'

This commit is contained in:
Tom Hughes 2019-01-09 17:16:01 +00:00
commit 09b6560e81
3 changed files with 8 additions and 3 deletions

View file

@ -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)