summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-02 22:29:12 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-02 22:29:12 +0100
commitb41a64bd7f246bdf3651111d167167e61af4d0c9 (patch)
tree2d32c5e562c3751d3cffab61478cbddb7b41f5cb /index.pl
parentf87306dc34e91ade3e55d67ac776fd5c7fd3bb15 (diff)
add undo for checkouts
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index fe5bcb6..2bce4eb 100755
--- a/index.pl
+++ b/index.pl
@@ -303,6 +303,10 @@ helper 'undo' => sub {
return 'Nested undo (undoing an undo) is not supported';
}
+ if ( @{$rows} > 1 and $rows->[1][0] == $action_type{undo}) {
+ return 'Repeated undo is not supported';
+ }
+
my $success = $self->app->undo_query->execute(
$self->get_user_id,
DateTime->now( time_zone => 'Europe/Berlin' )->epoch,