]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/recentchanges.pm
update
[git.ikiwiki.info.git] / IkiWiki / Plugin / recentchanges.pm
index a6d7f9fcefd98b4392cd4dcbd955c7225cde0e87..fe414d8659ef071cd51c377d999ad3bc96cf647f 100644 (file)
@@ -93,8 +93,12 @@ sub sessioncgi ($$) {
 
        return unless $do eq 'revert' && $rev;
 
-       $IkiWiki::hooks{rcs}{rcs_preprevert}{call}->(
-               cgi => $q, session => $session, rev => $rev);
+       my @changes=$IkiWiki::hooks{rcs}{rcs_preprevert}{call}->($rev);
+       IkiWiki::check_canchange(
+               cgi => $q,
+               session => $session,
+               changes => \@changes,
+       );
 
        my ($form, $buttons) = confirmation_form($q, $session);
        IkiWiki::decode_form_utf8($form);