[Bps-public-commit] App-Changeloggr branch, master, updated. 5b40dcdbf6378ec2b7548e6e5f80590abe58dcd2

sartak at bestpractical.com sartak at bestpractical.com
Fri Feb 27 21:18:07 EST 2009


The branch, master has been updated
       via  5b40dcdbf6378ec2b7548e6e5f80590abe58dcd2 (commit)
      from  bad642c62f388f6be8038b07277e276cfaabf61a (commit)

Summary of changes:
 lib/App/Changeloggr/Action/AddChanges.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 5b40dcdbf6378ec2b7548e6e5f80590abe58dcd2
Author: Shawn M Moore <sartak at gmail.com>
Date:   Fri Feb 27 21:18:00 2009 -0500

    Actually check admin_token instead of loadedness

diff --git a/lib/App/Changeloggr/Action/AddChanges.pm b/lib/App/Changeloggr/Action/AddChanges.pm
index 6b47515..4aead2c 100644
--- a/lib/App/Changeloggr/Action/AddChanges.pm
+++ b/lib/App/Changeloggr/Action/AddChanges.pm
@@ -32,7 +32,8 @@ sub validate_admin_token {
     my $admin_token = shift;
 
     my $changelog = $self->get_changelog;
-    if ($changelog->id) {
+
+    if ($changelog->admin_token eq $admin_token) {
         return $self->validation_ok('admin_token');
     }
     else {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list