]> source.dussan.org Git - redmine.git/commitdiff
Small fix for not read-only methods.
authorLiwiusz Ociepa <liwiusz.ociepa@softwarelab.eu>
Wed, 7 May 2008 09:22:50 +0000 (09:22 +0000)
committerLiwiusz Ociepa <liwiusz.ociepa@softwarelab.eu>
Wed, 7 May 2008 09:22:50 +0000 (09:22 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/branches/swistak@1421 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/Redmine.pm

index 7c02f7e7731c35a5558df503c4f6aa620bbd7484..0087c138e95c5a2e7d3c7e9dc68f8cd9b1d11e22 100644 (file)
@@ -195,7 +195,7 @@ sub access_handler {
   }
 
   my $method = $r->method;
-  return OK unless 1 == $read_only_methods{$method};
+  return OK if defined $read_only_methods{$method};
 
   my $project_id = get_project_identifier($r);