diff options
Diffstat (limited to 'rt/share/html/Articles/Article/History.html')
-rw-r--r-- | rt/share/html/Articles/Article/History.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/rt/share/html/Articles/Article/History.html b/rt/share/html/Articles/Article/History.html index 2ac352023..07437ccbb 100644 --- a/rt/share/html/Articles/Article/History.html +++ b/rt/share/html/Articles/Article/History.html @@ -45,13 +45,25 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<& /Elements/Header, Title => $title &> +<& /Elements/Header, Title => loc('History for article #[_1]', $id) &> <& /Elements/Tabs &> -<& Elements/ShowHistory, id => $id &> +<& /Elements/ShowHistory, + Object => $article, + ShowHeaders => 0, + ShowDisplayModes => 0, + ShowActions => 0, + DisplayPath => 'History.html', + &> <%init> -my $title =loc('History for article #[_1]',$id); -</%init> +my $article = RT::Article->new($session{'CurrentUser'}); +$article->Load($id); + +Abort(loc("Article #[_1] not found", $id)) + unless $article->Id; +Abort(loc("Permission Denied")) + unless $article->CurrentUserHasRight('ShowArticle'); +</%init> <%args> $id => undef </%args> |