X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FArticles%2FArticle%2FHistory.html;h=327bfc58db98e5a73e724b6f72e3663208ba0a96;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=1c2873f18d1124015bb9b9728549a6c9377d7f8e;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Articles/Article/History.html b/rt/share/html/Articles/Article/History.html index 1c2873f18..327bfc58d 100644 --- a/rt/share/html/Articles/Article/History.html +++ b/rt/share/html/Articles/Article/History.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -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); - +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'); + <%args> $id => undef