]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/concerns/redactable.rb
Remove authorize_web call from traces api controller
[rails.git] / app / models / concerns / redactable.rb
index ccf04907f28ff363cbc0f1d2e409076c3fd254a6..3a1ccf8b7d7494f6cdb2aa66f1dd559ac5e0f58e 100644 (file)
@@ -11,7 +11,7 @@ module Redactable
 
   def redact!(redaction)
     # check that this version isn't the current version
 
   def redact!(redaction)
     # check that this version isn't the current version
-    raise OSM::APICannotRedactError if is_latest_version?
+    raise OSM::APICannotRedactError if latest_version?
 
     # make the change
     self.redaction = redaction
 
     # make the change
     self.redaction = redaction