[Bps-public-commit] App-Changeloggr branch, master, updated. 6e3ca74f78b11bca5287b7fbc5433980573c0a85

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 1 14:06:19 EDT 2009


The branch, master has been updated
       via  6e3ca74f78b11bca5287b7fbc5433980573c0a85 (commit)
      from  149ef17637bf070e09cd4d527ba2bdb56feee777 (commit)

Summary of changes:
 .../Action/{UpdateChangelog.pm => CreateTag.pm}    |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
 copy lib/App/Changeloggr/Action/{UpdateChangelog.pm => CreateTag.pm} (74%)

- Log -----------------------------------------------------------------
commit 6e3ca74f78b11bca5287b7fbc5433980573c0a85
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Apr 1 14:05:07 2009 -0400

    Add a CreateTag action that swaps in superuser when the admin_token
    validates

diff --git a/lib/App/Changeloggr/Action/CreateTag.pm b/lib/App/Changeloggr/Action/CreateTag.pm
new file mode 100644
index 0000000..5c879c5
--- /dev/null
+++ b/lib/App/Changeloggr/Action/CreateTag.pm
@@ -0,0 +1,14 @@
+package App::Changeloggr::Action::CreateTag;
+use strict;
+use warnings;
+use base 'App::Changeloggr::Action::Mixin::RequiresAdminToken', 'Jifty::Action::Record::Create';
+
+sub take_action {
+    my $self = shift;
+    $self->record->current_user(App::Changeloggr::CurrentUser->superuser);
+    $self->SUPER::take_action(@_);
+}
+
+1;
+
+

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



More information about the Bps-public-commit mailing list