]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Add a new write_notes permission needed for OAuth access to notes
[rails.git] / app / controllers / application_controller.rb
index 4ac3297c6d532237a05f405bbd71b1e473e2dd5f..3c7dba9844fbbbcd90fa164356b581804edc5839 100644 (file)
@@ -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