X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/544113affae90f5ca661021a980ab0a9c2c2b2d1..97e0d5ad1f89b4717ddcc5d7280dc6c39341aa93:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4ac3297c6..3c7dba984 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -116,6 +116,9 @@ class ApplicationController < ActionController::Base def require_allow_write_gpx require_capability(:allow_write_gpx) end + def require_allow_write_notes + require_capability(:allow_write_notes) + end ## # require that the user is a moderator, or fill out a helpful error message